From 6a971fb2085adaadce881817caaaf5f3b2753112 Mon Sep 17 00:00:00 2001 From: xuyucheng Date: Thu, 25 Nov 2021 11:21:56 +0800 Subject: [PATCH] mode --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d795ebb..87c9467 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM golang:latest ENV GOPROXY https://goproxy.cn,direct -WORKDIR /home/esg_report_backend +WORKDIR /esg_report_backend COPY . . RUN go env -w GO111MODULE=on RUN go env -w GOPROXY=https://goproxy.cn,direct RUN go mod tidy RUN go build -o app . WORKDIR /dist -RUN cp /home/esg_report_backend +RUN cp /esg_report_backend EXPOSE 9090 ENTRYPOINT ["/dist/app"] \ No newline at end of file