xet-spec / Dockerfile
assafvayner's picture
assafvayner HF Staff
committing it all
055a113
raw
history blame contribute delete
311 Bytes
# 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"]