Files
digifi-EventManager/Dockerfile
T
2025-07-03 15:37:53 +01:00

22 lines
412 B
Docker

# Use Python base image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy files to container
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 5000
EXPOSE 5000
# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
# Run the application
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5000", "--timeout", "120", "wsgi:wsgi_app"]