From cfe27bb583e492366b52d21947b1ad69da9caa6b Mon Sep 17 00:00:00 2001 From: Carson Yang Date: Wed, 31 Jul 2024 13:50:33 +0800 Subject: [PATCH] Update Dockerfile --- projects/fastgpt/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/fastgpt/Dockerfile b/projects/fastgpt/Dockerfile index 2697306..124d775 100644 --- a/projects/fastgpt/Dockerfile +++ b/projects/fastgpt/Dockerfile @@ -10,6 +10,9 @@ WORKDIR /app # copy packages and one project ADD . ./ +RUN sed -i "s#https://fastgpt.in#https://fastgpt.cn#g" $(grep -rl "https://fastgpt.in" ./) +RUN sed -i "s#https://doc.fastgpt.in#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.in" ./) + RUN npm install RUN npm run build @@ -17,5 +20,5 @@ FROM fholzer/nginx-brotli:latest LABEL org.opencontainers.image.source https://github.com/labring/fastgpt-home -COPY --from=builder /app/public /usr/share/nginx/html +COPY --from=builder /app/out /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf