Spaces:
Sleeping
Sleeping
File size: 535 Bytes
173bba6 fb7733d 173bba6 a9f0317 ff270f3 46c6437 173bba6 fb7733d 0b27f10 173bba6 2cab35a fb7733d 173bba6 ff270f3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Use official Python runtime as base image
FROM python:3.9
# Set the working directory in the container
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files to the container
COPY . .
#Ensure the uploads directory exists and is writable
RUN chmod -R 777 /code/uploads/
# Install required Python packages
# Expose Flask port (default: 5000)
EXPOSE 7860
# Command to run the Flask application
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |