From 52d33b264941efeb6e163aa2f0e552918869cc68 Mon Sep 17 00:00:00 2001 From: xuyucheng Date: Thu, 25 Nov 2021 13:55:54 +0800 Subject: [PATCH] mode --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 57dc7d8..5cf8cfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:latest ENV GOPROXY https://goproxy.cn,direct -WORKDIR /esg_report_backend +WORKDIR /home/gin COPY . . RUN go env -w GO111MODULE=on RUN go env -w GOPROXY=https://goproxy.cn,direct @@ -8,4 +8,4 @@ RUN go mod tidy RUN go build -o app . WORKDIR /dist EXPOSE 9090 -CMD ["./webserver"] \ No newline at end of file +CMD ["/dist/app"] \ No newline at end of file