Move npm build and dev to Dockerfile

This commit is contained in:
Sami Abuzakuk
2025-10-22 22:23:06 +02:00
parent 5ba5107a3b
commit d3df001397
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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