Update Dockerfile

Former-commit-id: e8e99ed19cabe5a571f279cb2441964cdb954da9 [formerly cdbfd41a0ac408328eed4dd4466f1a9e0736ed0b] [formerly 69fc163bec96cc39dd5f77d1a7620eb9b29be28a [formerly ef315082ed]]
Former-commit-id: f81fbaeeee62c3a6a1d554f9dfff514ca095cf31 [formerly e5728fe8be1bbf463bd0b6e1f9df04de70dc3f4d]
Former-commit-id: f250a6c9fff5f8f397d1f3a6d00cfe0e4be23862
pull/726/head
Henrique Dias 2017-07-27 11:38:09 +01:00
parent be082c1075
commit 3469d8c6e8
1 changed files with 7 additions and 8 deletions

View File

@ -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"]
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"]