File size: 613 Bytes
80b3b44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# app/Dockerfile

FROM python:3.9-slim

# Install git
RUN apt-get update && apt-get install -y \
    git \
    gcc \
    build-essential

RUN useradd -m -u 1000 user

USER user

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

WORKDIR $HOME/app

RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
 git clone $(cat /run/secrets/GH_TOKEN)

RUN chmod 777 $HOME/app/andegpt-regbt
 
WORKDIR $HOME/app/andegpt-regbt

RUN pip3 install -r requirements.txt

EXPOSE 7860

ENTRYPOINT ["streamlit", "run", "--client.showSidebarNavigation=False", "Main.py", "--server.port=7860", "--server.address=0.0.0.0"]