Skip to content

Commit a06188a

Browse files
Merge branch 'develop' into feature/habitat_service_support
2 parents c8ae202 + 74defe5 commit a06188a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2109
-363
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Editors
22
.vscode/
3+
.idea/
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/
@@ -16,4 +17,13 @@ venv.bak/
1617
# mypy
1718
.mypy_cache/
1819
__pycache__/
20+
21+
# Module trash
22+
*.egg-info
23+
24+
# Notebooks
25+
devel.ipynb
26+
.ipynb_checkpoints
27+
28+
# build artifacts
1929
results/

Dockerfile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
FROM python:3.7.7-slim-buster
2-
3-
COPY .streamlit ~/
4-
5-
COPY ./requirements.txt /app/requirements.txt
6-
2+
RUN mkdir /app
73
WORKDIR /app
8-
9-
RUN pip install -q -r requirements.txt
10-
11-
COPY . ./
4+
COPY README.md .
5+
COPY setup.py .
6+
COPY requirements.txt .
7+
# Creating an empty src dir is a (hopefully) temporary hack to improve layer caching and speed up image builds
8+
# todo fix once the Pipfile, setup.py, requirements.txt, pyprojec.toml build/dist story is figured out
9+
RUN mkdir src && pip install -q .
10+
COPY .streamlit .streamlit
11+
COPY settings.cfg .
12+
COPY src src
1213

1314
CMD ["streamlit", "run", "src/app.py"]
15+

Dockerfile.dash

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.7.7-slim-buster
2+
3+
WORKDIR /code
4+
5+
COPY requirements.txt requirements.txt
6+
RUN pip install -q -r requirements.txt
7+
8+
COPY src src
9+
10+
# EXPOSE $PORT
11+
12+
CMD gunicorn dash_app:server --bind 0.0.0.0:$PORT --chdir src/

Pipfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
pytest = "*"
87

98
[packages]
109
streamlit = "*"
1110
pandas = "*"
1211
numpy = "*"
12+
pytest = "*"
1313
altair = "*"
14+
dash = "*"
15+
dash-bootstrap-components = "*"
16+
gunicorn = "*"
17+
PyYAML = "*"
1418

1519
[requires]
1620
python_version = "3.7"

0 commit comments

Comments
 (0)