GreenBeanzz7 commited on
Commit
0052fb4
·
verified ·
1 Parent(s): b935fdd

Update Dockerfile

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