Spaces:
Sleeping
Sleeping
File size: 427 Bytes
54e6328 080c998 54e6328 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.8-slim-buster
# Set working directory
WORKDIR /app
# Copy your application code
COPY . .
# Copy requirements.txt and install dependencies
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
RUN pip3 install gunicorn
RUN mkdir -p /app/logs && chmod 755 /app/logs
# Expose port that Flask app uses
EXPOSE 7860
# Set the entrypoint to run your Flask app
ENTRYPOINT ["python", "app.py"]
|