dschandra commited on
Commit
a313f9c
·
verified ·
1 Parent(s): 4911fd5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -1,8 +1,15 @@
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
 
 
4
  COPY . /app
5
 
6
- RUN pip install -r requirements.txt
 
 
 
 
7
 
 
8
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
+
5
+ # Copy app files
6
  COPY . /app
7
 
8
+ # Install dependencies
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Expose the port used by Flask
12
+ EXPOSE 7860
13
 
14
+ # Run the app
15
  CMD ["python", "app.py"]