Update Dockerfile

This commit is contained in:
Henrique Dias 2017-07-27 11:38:09 +01:00
parent bfc4362ddc
commit ef315082ed
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730

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"]
CMD ["-h"]
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"]