mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 03:32:33 +08:00
22 lines
345 B
Docker
22 lines
345 B
Docker
FROM node:22-alpine AS node
|
|
|
|
WORKDIR /app
|
|
|
|
COPY web ./web
|
|
|
|
RUN cd web && npm install && npm run build
|
|
|
|
FROM python:3.10.13-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
COPY --from=node /app/web/dist ./web/dist
|
|
|
|
RUN apt update \
|
|
&& apt install gcc -y \
|
|
&& python -m pip install -r requirements.txt \
|
|
&& touch /.dockerenv
|
|
|
|
CMD [ "python", "main.py" ] |