File size: 637 Bytes
2d4d526
8cf1f74
05e392c
8cf1f74
cffb5d8
 
6c07eac
05e392c
 
 
2d4d526
407008f
 
05e392c
cffb5d8
8cf1f74
d7d6958
05e392c
d7d6958
71a4daf
05e392c
 
 
d7d6958
05e392c
 
 
 
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
FROM python:3.9

WORKDIR /code

COPY
 ./requirements.txt /code/requirements.txt
RUN apt-get update && apt-get upgrade -y && apt-get install gcc -y
RUN pip install --no-cache-dir -r /code/requirements.txt
RUN pip install numpy
RUN pip install cython==0.29.21

RUN apt-get update
RUN apt-get install --reinstall build-essential -y
RUN pip install pygco==0.0.16
RUN apt-get install libgl1-mesa-glx

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

COPY --chown=user . $HOME/app

CMD ["streamlit", "run", "Introduction.py", "--server.port=7860", "--server.address=0.0.0.0"]