enpaiva commited on
Commit
4658692
·
verified ·
1 Parent(s): e2fa105

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 git clone https://github.com/EnPaiva93/metabook-es.git
21
+
22
+ RUN chmod 777 $HOME/app/metabook-es
23
+
24
+ WORKDIR $HOME/app/metabook-es
25
+
26
+ RUN pip3 install -r requirements.txt
27
+
28
+ EXPOSE 7860
29
+
30
+ ENTRYPOINT ["streamlit", "run", "--client.showSidebarNavigation=False", "Main.py", "--server.port=7860", "--server.address=0.0.0.0"]