From 77b871766b11eeca99cf7c4d90955fe1d2141f9b Mon Sep 17 00:00:00 2001 From: James Bristow Date: Sat, 17 Aug 2024 16:31:21 +1200 Subject: [PATCH] Adding Dash pages to Docker build --- app/app.py | 1 - docker-compose.yaml | 1 + dockerfiles/python/Dockerfile.0.1.0 | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 48a5e1b..1fbb764 100644 --- a/app/app.py +++ b/app/app.py @@ -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) diff --git a/docker-compose.yaml b/docker-compose.yaml index 91dfa36..61fa6c5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 diff --git a/dockerfiles/python/Dockerfile.0.1.0 b/dockerfiles/python/Dockerfile.0.1.0 index f70fbbb..20ac59e 100644 --- a/dockerfiles/python/Dockerfile.0.1.0 +++ b/dockerfiles/python/Dockerfile.0.1.0 @@ -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 \