Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchuansheng authored Jul 31, 2024
1 parent ca5f452 commit cfe27bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/fastgpt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ 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

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

0 comments on commit cfe27bb

Please sign in to comment.