gaoqilan commited on
Commit
6ab045b
·
verified ·
1 Parent(s): 5103f1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,15 +1,16 @@
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
 
 
1
  FROM python:3.10
2
+ WORKDIR /app
3
+
4
+ # Create temp directory with proper permissions
5
+ RUN mkdir -p /app/temp && chmod 777 /app/temp
6
+
7
+ # Clean and clone repository
8
+ RUN rm -rf * && git clone https://github.com/RockChinQ/LangBot .
9
 
10
+ # Install dependencies
 
11
  COPY requirements.txt .
12
  RUN pip install -r requirements.txt
13
 
 
 
 
 
 
14
  # Set permissions
15
  RUN chmod -R 777 /app
16