FROM python:3.11-slim
WORKDIR /app
# Copy requirements first to leverage Docker caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY src/ /app/src/
# Set the entrypoint to run the server
CMD ["python", "-m", "src.server"]