parent
276a6092ce
commit
08a4f941ea
@ -0,0 +1,14 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN mkdir "/app"
|
||||
WORKDIR "/app"
|
||||
|
||||
RUN mkdir "/app/config"
|
||||
RUN mkdir "/app/log"
|
||||
RUN mkdir "/app/upload"
|
||||
|
||||
COPY receive-files "/app/receive-files"
|
||||
|
||||
EXPOSE 7201
|
||||
|
||||
ENTRYPOINT ["./receive-files"]
|
@ -1,5 +1,5 @@
|
||||
## client
|
||||
|
||||
```shell
|
||||
curl -X POST -F 'file=@test.xls' 127.0.0.1:8080/upload
|
||||
curl -X POST -F 'file=@xcm.jpeg' -F 'name=xcm.jpeg' 127.0.0.1:7201/upload
|
||||
```
|
Loading…
Reference in new issue