Biofuel-Optimiser / Dockerfile
carrotcake3's picture
Update Dockerfile
fc240e0 verified
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
libxrender1 \
libxext6 \
libx11-6 \
libsm6 \
libfreetype6 \
libpng-dev \
libcairo2 \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements.txt requirements.txt
RUN pip install --upgrade pip setuptools wheel \
&& pip install -r requirements.txt
COPY . /app
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--workers", "1", "--timeout", "0", "--max-requests", "200", "--max-requests-jitter", "50", "app:app"]