Skip to content

Commit

Permalink
Merge pull request #25 from arthurtuio/main
Browse files Browse the repository at this point in the history
added Dockerfile and docker-compose.yaml
  • Loading branch information
gabubellon authored Oct 21, 2021
2 parents ed1f0bc + e679647 commit fa23732
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM python:3.9-slim-buster

RUN apt-get update -y \
&& apt-get install gcc -y \
&& apt-get clean

COPY requirements.txt /pybr_opendata/requirements.txt

WORKDIR /pybr_opendata/

RUN pip install --upgrade pip
RUN pip install -r /pybr_opendata/requirements.txt
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ format:
isort .

local_run:
@echo "Starting streamlit on docker, (localhost:8501)"
streamlit run src/app.py

local_docker_build:
@echo "Starting docker-compose build"
docker-compose build

local_docker_run:
@echo "Starting streamlit on docker, port 8501"
docker-compose up
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: "3"
services:
streamlit:
container_name: pybr_opendata
build:
context: .
dockerfile: ./Dockerfile
restart: always
volumes:
- ./:/pybr_opendata/
ports:
- "8501:8501"
command: streamlit run src/app.py

0 comments on commit fa23732

Please sign in to comment.