From 5734366c54919f927febc33aec0147f4a861a79d Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sat, 19 Sep 2020 01:11:48 +0300 Subject: [PATCH] Dockerfile: revert 05e995b The commit 05e995b doesn't work well with goreleaser (see: goreleaser/goreleaser#694), which broke the Docker image build. Reverting the commit should restore sanity in the goreleaser flow. --- Dockerfile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bf50c8..32bf3cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,10 @@ FROM alpine:latest as certs RUN apk --update add ca-certificates -FROM golang:alpine as build -WORKDIR /app/ - -COPY go.mod . -COPY go.sum . -RUN go mod download - -COPY . . -RUN go build -v - FROM scratch COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt -COPY --from=build /app/webdav /webdav EXPOSE 80 +COPY webdav /webdav ENTRYPOINT [ "/webdav" ]