Inayatgaming commited on
Commit
f82902a
·
verified ·
1 Parent(s): 225f368

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,6 +1,3 @@
1
- # ==========================================
2
- # Base Image
3
- # ==========================================
4
  FROM python:3.10-slim
5
 
6
  # ==========================================
@@ -20,11 +17,14 @@ RUN apt-get update && apt-get install -y \
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
  # ==========================================
23
- # Copy application files
24
  # ==========================================
25
  COPY app.py /app/app.py
26
  COPY requirements.txt /app/requirements.txt
27
 
 
 
 
28
  # ==========================================
29
  # Install Python dependencies
30
  # ==========================================
@@ -36,6 +36,6 @@ RUN pip install --no-cache-dir -r requirements.txt
36
  EXPOSE 7860
37
 
38
  # ==========================================
39
- # Run Flask app
40
  # ==========================================
41
  CMD ["python", "app.py"]
 
 
 
 
1
  FROM python:3.10-slim
2
 
3
  # ==========================================
 
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # ==========================================
20
+ # Copy app files
21
  # ==========================================
22
  COPY app.py /app/app.py
23
  COPY requirements.txt /app/requirements.txt
24
 
25
+ # Create writable cache directory
26
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
27
+
28
  # ==========================================
29
  # Install Python dependencies
30
  # ==========================================
 
36
  EXPOSE 7860
37
 
38
  # ==========================================
39
+ # Run app
40
  # ==========================================
41
  CMD ["python", "app.py"]