From 50074177e858c0b48fee6873a0bb1d21f34391db Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 1 Aug 2024 10:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bda9d477..886bbf7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,9 @@ WORKDIR /app COPY backend/go.mod . COPY backend/go.sum . RUN go mod download +RUN go mod tidy COPY --from=front /app/.output/public /app/public -COPY backend/* . +COPY backend/. . RUN apk update --no-cache && apk add --no-cache tzdata RUN go build -tags prod -ldflags="-s -w" -o /app/moments