MySafeCode commited on
Commit
20c53db
·
verified ·
1 Parent(s): 1cfff10

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -10
Dockerfile CHANGED
@@ -1,24 +1,20 @@
1
  FROM python:3.9-slim
2
 
3
- # Install system dependencies for pygame
4
  RUN apt-get update && apt-get install -y \
5
- libsdl2-mixer-2.0-0 \
6
- libsdl2-image-2.0-0 \
7
- libsdl2-2.0-0 \
8
- libsdl2-ttf-2.0-0 \
9
- && rm -rf /var/lib/apt/lists/*
 
10
 
11
  WORKDIR /app
12
 
13
- # Copy requirements first
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Copy all application files
18
  COPY . .
19
 
20
- # Hugging Face uses port 7860
21
  ENV PORT=7860
22
 
23
- # Run the application
24
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
+ libsdl2-mixer-2.0-0 \
5
+ libsdl2-image-2.0-0 \
6
+ libsdl2-2.0-0 \
7
+ libsdl2-ttf-2.0-0 \
8
+ ffmpeg \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
 
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  COPY . .
17
 
 
18
  ENV PORT=7860
19
 
 
20
  CMD ["python", "app.py"]