Spaces:
Running
Running
File size: 311 Bytes
055a113 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use a slim Python base image
FROM python:3.11-slim
# Set work directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy app code
COPY . .
# Expose Flask port
EXPOSE 8988
# Run the server
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8988", "app:app"]
|