From 8117eb98d87d5676cde6938d7553fea1fed4f6e0 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 28 Jul 2017 08:06:44 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3da129fd..91383d60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,13 @@ RUN go get ./... WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager RUN go install +FROM alpine:latest +COPY --from=0 /go/bin/filemanager /usr/local/bin/filemanager + VOLUME /srv EXPOSE 80 COPY Docker.json /etc/config.json -ENTRYPOINT ["/go/bin/filemanager"] +ENTRYPOINT ["/usr/local/bin/filemanager"] CMD ["--config", "/etc/config.json"]