File size: 330 Bytes
1b294d6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10-slim

ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV GRADIO_SERVER_NAME 0.0.0.0

RUN useradd -m -u 1000 user
WORKDIR /home/user/app

RUN --mount=target=requirements.txt,source=requirements.txt :\
    && pip install --no-cache-dir -r requirements.txt

COPY . .
EXPOSE 7860

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