File size: 588 Bytes
415fc0f
c83b762
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f7b6f4
49f0a7a
1d18da0
7c2857b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM nvidia/cuda:11.7.1-base-ubuntu22.04
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && rm -rf /var/lib/apt/lists/*
WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

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

COPY . .
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		
RUN chmod +x tests.sh && ./tests.sh

CMD ["streamlit", "run","app.py","--server.port" ,"7860"]