Spaces:
Runtime error
Runtime error
File size: 545 Bytes
c9f4d0a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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"]
|