dilemmaAI / Dockerfile
ananya-prakash's picture
Upload 5 files
71b6169 verified
# Use the official Python image as a base image
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Set environment variables
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=5001
# Expose port 5000 to allow external connections
EXPOSE 5001
# Run the Flask app
CMD ["flask", "run"]