Spaces:
Sleeping
Sleeping
File size: 534 Bytes
8180aa7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Use Python image
FROM python:3.9
# Set the working directory inside the container
WORKDIR /code
# Copy the requirements file from the root
COPY ./requirements.txt /code/requirements.txt
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy all files and folders (including 'pages' and 'assets')
COPY . /code
# Start the app using Gunicorn on port 7860
# This assumes your main file is 'app.py' and it contains 'server = app.server'
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:server"] |