File size: 468 Bytes
1229c2b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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"]