From 6c360ffc5cb5f9abce72935256a57b59d21b5201 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 28 Jul 2017 08:06:44 +0100 Subject: [PATCH] Update Dockerfile Former-commit-id: ecae8322b52dc294e4926f542059b2a2f76d67e1 [formerly c0000943385ed1417a7e748d36f1cd25750d8217] [formerly 2a70f9a07f83e017b58f65c9dbe8583e7dc92227 [formerly 8117eb98d87d5676cde6938d7553fea1fed4f6e0]] Former-commit-id: 992d5e311c66506d0e7ca90f49f38e4be7983afb [formerly 52ab26d2c1029266e6ddac201bc34bcb3271b984] Former-commit-id: a4c5a02eee252ab728f4da55a6ed32d6470d7b81 --- 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"]