From 3469d8c6e8513e23eac2547ceb0a8e1346b4b619 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 27 Jul 2017 11:38:09 +0100 Subject: [PATCH] Update Dockerfile Former-commit-id: e8e99ed19cabe5a571f279cb2441964cdb954da9 [formerly cdbfd41a0ac408328eed4dd4466f1a9e0736ed0b] [formerly 69fc163bec96cc39dd5f77d1a7620eb9b29be28a [formerly ef315082edf5fb7d28731f80d7e961468d69d6e7]] Former-commit-id: f81fbaeeee62c3a6a1d554f9dfff514ca095cf31 [formerly e5728fe8be1bbf463bd0b6e1f9df04de70dc3f4d] Former-commit-id: f250a6c9fff5f8f397d1f3a6d00cfe0e4be23862 --- 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"]