gaoqilan commited on
Commit
c398350
·
verified ·
1 Parent(s): de91814

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -4
Dockerfile CHANGED
@@ -1,9 +1,19 @@
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"]
 
 
1
  FROM python:3.10
2
+
3
+ # Create a clean working directory
4
+ WORKDIR /tmp/build
5
+ COPY requirements.txt .
6
+ RUN pip install -r requirements.txt
7
+
8
+ # Create app directory
9
  WORKDIR /app
10
+ RUN mkdir -p /app/temp && chmod 777 /app/temp
11
  RUN git clone https://github.com/RockChinQ/LangBot .
12
+
13
+ # Set permissions
14
+ RUN chmod -R 777 /app
15
+
16
  EXPOSE 5300
17
  EXPOSE 2280-2290
18
+
19
+ CMD ["python", "main.py"]