Files
gander/web_server/Dockerfile
2025-01-22 13:50:03 +00:00

19 lines
404 B
Docker

FROM python:3.10
# Set the working directory
WORKDIR /web_server
# Install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Set environment variables
ENV FLASK_APP=backend.blueprints.__init__
ENV FLASK_DEBUG=True
# Start the Flask app
CMD ["gunicorn", "-b", "0.0.0.0:5000", "blueprints.__init__:create_app()"]