File size: 457 Bytes
1425afc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Base image with Python and essential libraries
FROM python:3.8-slim
# Install system-level dependencies
RUN apt-get update && \
apt-get install -y espeak && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /app
# Copy your files into the container
COPY . .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port
EXPOSE 7860
# Run your app
CMD ["python", "app.py"] |