diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a86cde95 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +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