IliaLarchenko commited on
Commit
bbe22e6
1 Parent(s): e06688d

added docker files

Browse files
Files changed (3) hide show
  1. Dockerfile +8 -0
  2. docker-compose.yml +6 -0
  3. setup_docker.sh +10 -0
Dockerfile ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.7-buster
2
+ EXPOSE 8501
3
+ WORKDIR /code
4
+ COPY requirements.txt requirements.txt
5
+ RUN pip install -r requirements.txt
6
+ COPY . .
7
+ RUN bash setup_docker.sh
8
+ CMD ["streamlit", "run", "src/app.py"]
docker-compose.yml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ version: '3'
2
+ services:
3
+ app:
4
+ build: .
5
+ ports:
6
+ - "8501:8501"
setup_docker.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ mkdir -p ~/.streamlit/
2
+
3
+ echo -e "\
4
+ [server]\n\
5
+ headless = true\n\
6
+ enableCORS=false\n\
7
+ " > ~/.streamlit/config.toml
8
+
9
+
10
+ cat ~/.streamlit/config.toml