Files
gander/web_server/Dockerfile
Chris-1010 fbe7d2ceb1 Updated Homepage & Styling;
Corrected imports/config settings;
2025-01-22 13:46:04 +00:00

22 lines
422 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
# Expose Flask's port
EXPOSE 5000
# Start the Flask app
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]