Fixed Dockerfile missing dep "Vite"

This commit is contained in:
ploc300
2025-02-13 15:32:31 +01:00
parent 06c798ba62
commit 61ff25dda7
+5 -4
View File
@@ -2,12 +2,13 @@ FROM node:23.7.0-alpine3.21 as builder
WORKDIR /app WORKDIR /app
COPY package*.json . COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force RUN npm ci && npm cache clean --force
COPY . . COPY . ./
RUN npm run build RUN npm install -g vite
RUN npx vite build
FROM nginx:alpine FROM nginx:alpine