IliaLarchenko commited on
Commit
397af90
2 Parent(s): 8cc587c 894f5ce

Merge branch 'develop'

Browse files
Files changed (4) hide show
  1. Dockerfile +8 -0
  2. README.md +8 -1
  3. docker-compose.yml +6 -0
  4. setup_docker.sh +7 -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"]
README.md CHANGED
@@ -9,7 +9,7 @@ You can play with this service right now [https://albumentations-demo.herokuapp.
9
 
10
  If you would like to run it locally follow the installation instruction.
11
 
12
- ## Installation
13
  ```
14
  git clone https://github.com/IliaLarchenko/albumentations-demo
15
  cd albumentations-demo
@@ -37,6 +37,13 @@ In your terminal you will see the link to the running local service similar to :
37
  ```
38
  Just follow the local link to use the service.
39
 
 
 
 
 
 
 
 
40
  ## How to use
41
 
42
  The interface is very simple and intuitive:
 
9
 
10
  If you would like to run it locally follow the installation instruction.
11
 
12
+ ## Installation and run
13
  ```
14
  git clone https://github.com/IliaLarchenko/albumentations-demo
15
  cd albumentations-demo
 
37
  ```
38
  Just follow the local link to use the service.
39
 
40
+ ## Run in docker
41
+ You can run the service in docker:
42
+ ```
43
+ docker-compose up
44
+ ```
45
+ It will be available at http://DOCKER_HOST_IP:8501
46
+
47
  ## How to use
48
 
49
  The interface is very simple and intuitive:
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,7 @@
 
 
 
 
 
 
 
 
1
+ mkdir -p ~/.streamlit/
2
+
3
+ echo -e "\
4
+ [server]\n\
5
+ headless = true\n\
6
+ enableCORS=false\n\
7
+ " > ~/.streamlit/config.toml