ci: 修改dockerfile

This commit is contained in:
RockChinQ
2024-02-07 00:07:55 +08:00
parent b5b67ad958
commit 5880dacad8
2 changed files with 4 additions and 63 deletions

View File

@@ -1,15 +1,8 @@
FROM python:3.10.13-bullseye
WORKDIR /QChatGPT
WORKDIR /app
COPY . /QChatGPT/
COPY . .
RUN ls
RUN python -m pip install -r requirements.txt
RUN python -m pip install -r requirements.txt && \
python -m pip install -U websockets==10.0 && \
python -m pip install -U httpcore httpx openai
# 生成配置文件
RUN python main.py
CMD [ "python", "main.py" ]
CMD [ "python", "start.py" ]