From 948681ad40c026237d3fd4410138321f8f9c4490 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Sat, 24 Aug 2024 07:41:30 +0800 Subject: [PATCH] fixed docker build error: --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 162c5233..e98e5dca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 # build frontend -FROM node:19-alpine as frontend +FROM node:19-alpine AS frontend ARG API_HOST ARG USE_API_HOST=yes ARG EMBED_UI=yes @@ -18,6 +18,8 @@ ARG API_HOST ARG USE_API_HOST=yes ARG EMBED_UI=yes ARG USE_DIST=no +ENV GOPROXY=https://goproxy.cn,direct +WORKDIR /paopao-ce COPY go.mod . COPY go.sum . RUN go mod download @@ -41,11 +43,9 @@ ARG USE_API_HOST=yes ARG EMBED_UI=yes ARG USE_DIST=no ENV TZ=Asia/Shanghai - WORKDIR /app/paopao-ce COPY --from=backend /paopao-ce/release/paopao . COPY --from=backend /paopao-ce/config.yaml.sample config.yaml - VOLUME ["/app/paopao-ce/custom"] EXPOSE 8008 HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD ps -ef | grep paopao || exit 1