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