Spaces:
Runtime error
Runtime error
File size: 577 Bytes
424f388 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Use the official Python image and set it to support multiple architectures
FROM python:3
# Set working directory
WORKDIR /AutoExpress/
# Copy the requirements file and install dependencies
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project into the container
COPY . .
# Expose the port that Flask will run on
EXPOSE 5000
# Set environment variable for Flask
ENV FLASK_APP=autoexpress
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=5000
# Command to run the Flask app
CMD ["flask", "run"]
|