From a159b5fbf379f13927d0b8f9f0efb398b89d005b Mon Sep 17 00:00:00 2001 From: Zhang Minghan Date: Thu, 25 Jan 2024 10:57:02 +0800 Subject: [PATCH] fix: update dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b22d8a..86e8936 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM golang:1.20 AS backend -WORKDIR /backend +WORKDIR / COPY . . # Set go proxy to https://goproxy.cn (open for vps in China Mainland) @@ -40,7 +40,7 @@ RUN echo "Asia/Shanghai" > /etc/timezone && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # Copy dist -COPY --from=backend /backend / +COPY --from=backend / / COPY --from=frontend /app/dist /app/dist # Expose port