diff --git a/Dockerfile b/Dockerfile index 2e1251b..17cda48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,8 @@ RUN . /app/backend/venv/bin/activate && pip install -r requirements.txt WORKDIR /app/frontend ADD frontend . +RUN npm install +RUN npm run build WORKDIR /app diff --git a/docker/entry.sh b/docker/entry.sh index 18487c7..c56c54e 100644 --- a/docker/entry.sh +++ b/docker/entry.sh @@ -5,8 +5,6 @@ source /app/backend/venv/bin/activate # Navigate to the frontend directory, install dependencies, and start the Svelte app cd frontend -npm install -npm run build npm run dev -- --host 0.0.0.0 --port 8080 & # Navigate back to the root directory