Spaces:
Runtime error
Runtime error
# Use the official Python image as a base image | |
FROM python:3.10-slim | |
# Set the working directory inside the container | |
WORKDIR /app | |
# Copy the current directory contents into the container at /app | |
COPY . /app | |
# Install the dependencies from requirements.txt | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Expose the port that Flask runs on | |
EXPOSE 5000 | |
# Set the environment variable for Flask to run in production | |
ENV FLASK_ENV=production | |
# Start the Flask application with gunicorn | |
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"] | |