From ef315082edf5fb7d28731f80d7e961468d69d6e7 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 27 Jul 2017 11:38:09 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a86cde95..a2d5182d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ FROM golang:alpine -WORKDIR /go/src/github.com/hacdias/filemanager COPY . /go/src/github.com/hacdias/filemanager - -RUN apk add --no-cache git && go get ./... && cd /go/src/github.com/hacdias/filemanager/cmd/filemanager && go build - -FROM alpine:latest -COPY --from=0 /go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager /usr/local/bin/filemanager -ENTRYPOINT ["filemanager"] -CMD ["-h"] \ No newline at end of file +WORKDIR /go/src/github.com/hacdias/filemanager +RUN apk add --no-cache git +RUN go get ./... +WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager +RUN go build +ENTRYPOINT ["/go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager"] +CMD ["-h"]