Nick021402 commited on
Commit
8c05563
·
verified ·
1 Parent(s): b6212ec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -20
Dockerfile CHANGED
@@ -1,27 +1,11 @@
1
- FROM python:3.9-slim
2
 
3
- # Install system dependencies
4
- RUN apt-get update && apt-get install -y \
5
- ffmpeg \
6
- git \
7
- && rm -rf /var/lib/apt/lists/*
8
 
9
- # Set working directory
10
- WORKDIR /app
11
 
12
- # Copy requirements and install Python dependencies
13
- COPY requirements.txt .
14
- RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Copy application code
17
  COPY . .
18
 
19
- # Expose port
20
- EXPOSE 7860
21
-
22
- # Set environment variables
23
- ENV GRADIO_SERVER_NAME="0.0.0.0"
24
- ENV GRADIO_SERVER_PORT=7860
25
-
26
- # Run the application
27
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10
2
 
3
+ WORKDIR /code
 
 
 
 
4
 
5
+ COPY ./requirements.txt /code/requirements.txt
 
6
 
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
8
 
 
9
  COPY . .
10
 
 
 
 
 
 
 
 
 
11
  CMD ["python", "app.py"]