MySafeCode commited on
Commit
1fa5eae
·
verified ·
1 Parent(s): c6c143b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -2
Dockerfile CHANGED
@@ -1,10 +1,21 @@
1
  FROM python:3.11-slim-bullseye
2
- RUN apt-get update && apt-get install -y libsdl2-2.0-0 libfreetype6
 
 
 
 
 
 
3
  WORKDIR /app
 
4
  COPY requirements.txt .
5
  RUN pip install --no-cache-dir -r requirements.txt
 
6
  COPY app.py .
 
7
  ENV SDL_VIDEODRIVER=dummy
8
  ENV PYGAME_HIDE_SUPPORT_PROMPT=1
 
9
  EXPOSE 7860
10
- CMD ["gunicorn", "--workers", "4", "-b", "0.0.0.0:7860", "app:app"]
 
 
1
  FROM python:3.11-slim-bullseye
2
+
3
+ # Minimal system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ libsdl2-2.0-0 \
6
+ libfreetype6 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /app
10
+
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
+
14
  COPY app.py .
15
+
16
  ENV SDL_VIDEODRIVER=dummy
17
  ENV PYGAME_HIDE_SUPPORT_PROMPT=1
18
+
19
  EXPOSE 7860
20
+
21
+ CMD ["python", "app.py"]