Fixed Dockerfile missing dep "Vite"

This commit is contained in:
ploc300
2025-02-13 15:32:31 +01:00
parent 06c798ba62
commit 61ff25dda7
+6 -5
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
@@ -15,4 +16,4 @@ COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3006 EXPOSE 3006
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]