HedronCreeper commited on
Commit
6ca6cdb
Β·
verified Β·
1 Parent(s): 814785f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -3
Dockerfile CHANGED
@@ -1,10 +1,22 @@
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
-
5
- RUN pip install --no-cache-dir flask
6
 
7
  COPY app.py .
 
8
 
9
  EXPOSE 7860
10
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
+ COPY requirements.txt .
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
 
7
  COPY app.py .
8
+ COPY static/ static/
9
 
10
  EXPOSE 7860
11
+ CMD ["python", "app.py"]
12
+ ```
13
+
14
+ ---
15
+
16
+ Your file structure should be:
17
+ ```
18
+ β”œβ”€β”€ Dockerfile
19
+ β”œβ”€β”€ requirements.txt
20
+ β”œβ”€β”€ app.py
21
+ └── static/
22
+ └── index.html