dds / Dockerfile
sikandarciv101's picture
Update Dockerfile
2e1e9af verified
raw
history blame contribute delete
633 Bytes
# Use Python base image
FROM python:3.10-slim
# Set the working directory in the container
WORKDIR /app
# Install system dependencies and espeak for pyttsx3
RUN apt-get update && apt-get install -y \
espeak-ng \
libespeak1 \
&& apt-get clean
# Copy the requirements.txt to the container
COPY requirements.txt .
# Install the Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code to the container
COPY . .
# Expose the port (if using a web app like Flask or FastAPI)
EXPOSE 5000
# Command to run the application (change this based on your app)
CMD ["python", "app.py"]