Update Dockerfile
This commit is contained in:
parent
bfc4362ddc
commit
ef315082ed
15
Dockerfile
15
Dockerfile
|
@ -1,10 +1,9 @@
|
||||||
FROM golang:alpine
|
FROM golang:alpine
|
||||||
WORKDIR /go/src/github.com/hacdias/filemanager
|
|
||||||
COPY . /go/src/github.com/hacdias/filemanager
|
COPY . /go/src/github.com/hacdias/filemanager
|
||||||
|
WORKDIR /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
|
RUN apk add --no-cache git
|
||||||
|
RUN go get ./...
|
||||||
FROM alpine:latest
|
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
|
||||||
COPY --from=0 /go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager /usr/local/bin/filemanager
|
RUN go build
|
||||||
ENTRYPOINT ["filemanager"]
|
ENTRYPOINT ["/go/src/github.com/hacdias/filemanager/cmd/filemanager/filemanager"]
|
||||||
CMD ["-h"]
|
CMD ["-h"]
|
||||||
|
|
Loading…
Reference in New Issue