File size: 376 Bytes
996635e
 
c959ace
 
364060d
 
c959ace
 
996635e
5200001
996635e
 
 
 
5200001
996635e
c959ace
 
996635e
 
5200001
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.9.12-slim

RUN useradd -ms /bin/bash admin

ENV WORKDIR=/code
WORKDIR $WORKDIR
RUN chown -R admin:admin $WORKDIR
RUN chmod 755 $WORKDIR

COPY requirements.txt $WORKDIR/requirements.txt

RUN pip install gradio --no-cache-dir
RUN pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt

COPY . .

USER admin

EXPOSE 7860

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