Spaces:
Sleeping
Sleeping
File size: 352 Bytes
90b3b3f ddbb9bb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.9-slim
WORKDIR /app
# Create a non-root user
RUN useradd -m -u 1000 user
# Give full permissions to the app directory
RUN chmod -R 777 /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Run app.py when the container launches
EXPOSE 7860
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]
|