sailing_forms/Dockerfile
2025-11-26 17:11:44 +01:00

16 lines
No EOL
314 B
Docker

FROM python:3.9-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose the port Flask runs on
EXPOSE 5000
# Run with Gunicorn (Production Server)
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "app:app"]