Skip to content

Commit

Permalink
Adding Dash pages to Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
JBris committed Aug 17, 2024
1 parent 5d26c9b commit 77b8717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def define_ui(app: Dash, df: pd.DataFrame) -> None:
cfg = compose(config_name="config")
config = instantiate(cfg)

print(config)
define_ui(app, df)
define_callbacks(app, df)

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
volumes:
- ./app/app.py:/app/app.py
- ./app/conf:/app/conf
- ./app/pages:/app/pages
command: >
gunicorn -b 0.0.0.0:8000 -w 4 app:server
Expand Down
2 changes: 2 additions & 0 deletions dockerfiles/python/Dockerfile.0.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ COPY app/app.py app.py

COPY app/conf conf

COPY app/pages pages

RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential libpq-dev graphviz \
&& apt-get clean \
Expand Down

0 comments on commit 77b8717

Please sign in to comment.