Use full python image
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -1,15 +1,16 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
RUN apt-get update && apt-get install -y
|
| 7 |
|
| 8 |
-
#
|
| 9 |
COPY requirements.txt .
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
-
#
|
| 13 |
COPY main.py .
|
| 14 |
|
| 15 |
ENV PORT=7860
|
|
|
|
| 1 |
+
# Use a more complete base image
|
| 2 |
+
FROM python:3.11
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# System deps - use a single RUN to avoid cache issues
|
| 7 |
+
RUN apt-get update && apt-get install -y espeak-ng libespeak-ng1 && rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
+
# Python deps
|
| 10 |
COPY requirements.txt .
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
+
# App
|
| 14 |
COPY main.py .
|
| 15 |
|
| 16 |
ENV PORT=7860
|