15 lines
347 B
Docker
15 lines
347 B
Docker
FROM python:3.13-slim
|
|
WORKDIR /app
|
|
|
|
# Copy requirements first (better layer caching)
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Expose port
|
|
EXPOSE 5000
|
|
|
|
# Run with Gunicorn
|
|
CMD ["gunicorn", "--config", "gunicorn_config.py", "--bind", "0.0.0.0:5000", "--workers", "4", "app:app"] |