mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
ci: 更新Dockerfile
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,17 +1,14 @@
|
|||||||
FROM python:3.9-slim
|
FROM python:3.10.13-alpine3.18
|
||||||
WORKDIR /QChatGPT
|
WORKDIR /QChatGPT
|
||||||
|
|
||||||
RUN sed -i "s/deb.debian.org/mirrors.tencent.com/g" /etc/apt/sources.list \
|
|
||||||
&& sed -i 's|security.debian.org/debian-security|mirrors.tencent.com/debian-security|g' /etc/apt/sources.list \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& apt-get update \
|
|
||||||
&& apt-get -y upgrade \
|
|
||||||
&& apt-get install -y git \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY . /QChatGPT/
|
COPY . /QChatGPT/
|
||||||
|
|
||||||
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
RUN ls
|
||||||
|
|
||||||
CMD [ "python", "main.py" ]
|
RUN pip install -r requirements.txt
|
||||||
|
RUN pip install -U websockets==10.0
|
||||||
|
|
||||||
|
# 生成配置文件
|
||||||
|
RUN python main.py
|
||||||
|
|
||||||
|
CMD [ "python", "main.py" ]
|
||||||
Reference in New Issue
Block a user