From 38fc595725fe3d68b2df6ebfdeb574718ca152f4 Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Tue, 7 May 2024 20:23:40 +0200 Subject: [PATCH] fixed code import bug --- web_ui/Dockerfile | 2 +- web_ui/src/main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web_ui/Dockerfile b/web_ui/Dockerfile index 59b4f9e..336607e 100644 --- a/web_ui/Dockerfile +++ b/web_ui/Dockerfile @@ -49,7 +49,7 @@ RUN mkdir -p /home/app && \ # add code while changing ownership WORKDIR $APP_HOME COPY --chown=app:app ./core ./core -COPY --chown=app:app ./src ./src +COPY --chown=app:app ./web_ui/src ./src # change to the app user USER app diff --git a/web_ui/src/main.py b/web_ui/src/main.py index 71670ca..5beed84 100644 --- a/web_ui/src/main.py +++ b/web_ui/src/main.py @@ -4,12 +4,12 @@ import logging import os from pathlib import Path -from app import app from dotenv import load_dotenv +from .app import app + # prepare optional local setup env_path = Path(__file__).parent.parent.parent / 'local.env' -assert env_path.exists() load_dotenv(env_path) # ensure env vars set