FROM python:3.11-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY src/ ./src/ # Create cache directory RUN mkdir -p /app/cache # Expose port EXPOSE 5000 # Set environment variables ENV FLASK_APP=src/web_app.py ENV PYTHONUNBUFFERED=1 # Run the web server CMD ["python", "src/web_app.py"]