Spaces:
Sleeping
Sleeping
# Use the official Python image as the base image | |
FROM python:3.9 | |
# Set the working directory inside the container | |
WORKDIR /code | |
# Copy the requirements file into the container at /code | |
COPY ./requirements.txt /code/requirements.txt | |
# Install the required Python packages | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
# Copy the entire current directory into the container at /code | |
COPY . . | |
# Expose port 5000 to the outside world | |
EXPOSE 7860 | |
# Command to run the Flask applicationW | |
CMD ["python", "app.py"] |