HedronCreeper commited on
Commit
0ff7038
·
verified ·
1 Parent(s): f4d75f3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -9
Dockerfile CHANGED
@@ -1,17 +1,11 @@
1
- # Start from Python base image
2
  FROM python:3.11-slim
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy app.py
8
- COPY app.py /app
9
 
10
- # Install Gradio
11
- RUN pip install gradio==3.43.0
12
 
13
- # Expose HF default port
14
  EXPOSE 7860
15
-
16
- # Run the app
17
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.11-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt /app/
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY app.py /app
 
9
 
 
10
  EXPOSE 7860
 
 
11
  CMD ["python", "app.py"]