gaoqilan commited on
Commit
9520f13
·
verified ·
1 Parent(s): 61b9e0a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -20
Dockerfile CHANGED
@@ -1,22 +1,9 @@
1
- FROM python:3.9-slim
2
-
3
  WORKDIR /app
4
-
5
- # 安装必要工具
6
- RUN apt-get update && apt-get install -y git
7
-
8
- # 克隆项目
9
  RUN git clone https://github.com/RockChinQ/LangBot .
10
-
11
- # 安装依赖
12
- RUN pip install --no-cache-dir -r requirements.txt
13
-
14
- # 设置环境变量
15
- ENV HOST=0.0.0.0
16
- ENV PORT=7860
17
-
18
- # 暴露端口
19
- EXPOSE 7860
20
-
21
- # 启动命令
22
- CMD ["python", "main.py"]
 
1
+ FROM python:3.10
 
2
  WORKDIR /app
 
 
 
 
 
3
  RUN git clone https://github.com/RockChinQ/LangBot .
4
+ RUN pip install -r requirements.txt
5
+ COPY ./start.sh /app/start.sh
6
+ RUN chmod +x /app/start.sh
7
+ EXPOSE 5300
8
+ EXPOSE 2280-2290
9
+ CMD ["/app/start.sh"]