Move npm build and dev to Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user