Jacky2305 commited on
Commit
237f566
·
1 Parent(s): 72d1cd3

Use full python image

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
- FROM python:3.11-slim
 
2
 
3
  WORKDIR /app
4
 
5
- # Install system deps in one layer to avoid cache issues
6
- RUN apt-get update && apt-get install -y --no-install-recommends espeak-ng libespeak-ng1 && rm -rf /var/lib/apt/lists/*
7
 
8
- # Install Python deps
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- # Copy app
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