enpaiva commited on
Commit
80b3b44
1 Parent(s): af8ff64

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app/Dockerfile
2
+
3
+ FROM python:3.9-slim
4
+
5
+ # Install git
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ gcc \
9
+ build-essential
10
+
11
+ RUN useradd -m -u 1000 user
12
+
13
+ USER user
14
+
15
+ ENV HOME=/home/user \
16
+ PATH=/home/user/.local/bin:$PATH
17
+
18
+ WORKDIR $HOME/app
19
+
20
+ RUN --mount=type=secret,id=GH_TOKEN,mode=0444,required=true \
21
+ git clone $(cat /run/secrets/GH_TOKEN)
22
+
23
+ RUN chmod 777 $HOME/app/andegpt-regbt
24
+
25
+ WORKDIR $HOME/app/andegpt-regbt
26
+
27
+ RUN pip3 install -r requirements.txt
28
+
29
+ EXPOSE 7860
30
+
31
+ ENTRYPOINT ["streamlit", "run", "--client.showSidebarNavigation=False", "Main.py", "--server.port=7860", "--server.address=0.0.0.0"]