File size: 416 Bytes
d536096
 
 
 
 
bfa7c29
d536096
bfa7c29
d536096
bfa7c29
d536096
bfa7c29
 
 
 
 
 
d536096
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV HF_HOME=/data/.huggingface

RUN useradd -m -u 1000 user

WORKDIR /home/user/app

COPY --chown=user requirements.txt /home/user/app/requirements.txt
RUN pip install --no-cache-dir -r /home/user/app/requirements.txt

COPY --chown=user . /home/user/app

USER user

EXPOSE 7860

CMD ["python", "app.py"]