Former-commit-id: 32ee5895db96495db099b05391ad775b64e91ec3 [formerly 4636b9d22f781d91167e45a39930448b10d85e43] [formerly 5ae6fd1b6b8894b85c0df81d7e53d8e787d4797c [formerly 537c839d9e]]
Former-commit-id: 99579a9a68807d7fa55e9abfa8b2881f509b4ce2 [formerly d48f9c64d5dddada4f0e71ce611fc75c93477ec4]
Former-commit-id: 5a20514a2e2d250796b271c14ec90de022beb725
pull/726/head
Henrique Dias 2017-07-28 09:59:36 +01:00
commit 4c665ec69c
1 changed files with 4 additions and 1 deletions

View File

@ -9,10 +9,13 @@ RUN go get ./...
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
RUN go install RUN go install
FROM alpine:latest
COPY --from=0 /go/bin/filemanager /usr/local/bin/filemanager
VOLUME /srv VOLUME /srv
EXPOSE 80 EXPOSE 80
COPY Docker.json /etc/config.json COPY Docker.json /etc/config.json
ENTRYPOINT ["/go/bin/filemanager"] ENTRYPOINT ["/usr/local/bin/filemanager"]
CMD ["--config", "/etc/config.json"] CMD ["--config", "/etc/config.json"]