File size: 565 Bytes
7ef93e7
a8077c1
 
7ef93e7
 
 
 
92dc3d5
 
 
 
 
 
8c11fb4
668457f
8c11fb4
 
7ef93e7
a8077c1
c40d13d
a8077c1
 
 
 
 
 
 
7ef93e7
 
a8077c1
7ef93e7
a8077c1
97fea5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

FROM python:3.9-slim

ENV DEBIAN_FRONTEND noninteractive

WORKDIR /content

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    build-essential \
    g++ \
    && rm -rf /var/lib/apt/lists/*

RUN apt-get update && apt-get install -y libgl1-mesa-glx
RUN apt-get update && apt-get install -y libglib2.0-0


ADD . .

RUN pip install --no-cache-dir -r ./requirements.txt


RUN adduser --disabled-password --gecos '' user && \
    chown -R user:user /content && \
    chmod -R 777 /content


USER user


EXPOSE 7860

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