From 9b21e1f0cb25e3920f3ca7b986a56e92a8e4f191 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 8 Dec 2021 15:18:54 +0100 Subject: [PATCH] Fix Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 62883eb..2051bb8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM golang:alpine as builder-base WORKDIR /app COPY go.mod /app/go.mod COPY go.sum /app/go.sum -RUN go mod download +RUN go mod download -x COPY . /app -RUN go build -o ezshare main.go +RUN go build -o dist/ezshare main.go FROM builder-base as cross-compiler VOLUME ["/data"] CMD ["/app/scripts/cross-compile.sh"] FROM alpine:latest -COPY --from=builder-base /app/ezshare /usr/bin/ezshare +COPY --from=builder-base /app/dist/ezshare /usr/bin/ezshare EXPOSE 50051 EXPOSE 8088 CMD ["/usr/bin/ezshare", "--config", "/data/ezshare.toml", "serve"] \ No newline at end of file