# 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.12 RUN useradd -m -u 1000 mirix USER mirix ENV PATH="/home/mirix/.local/bin:$PATH" WORKDIR /app COPY --chown=mirix ./requirements.txt requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt RUN pip install gunicorn COPY --chown=mirix . /app CMD ["gunicorn", "app:server", "-b", "0.0.0.0:7860"]