From 61ff25dda7ffc721152b739fc8c5f97dd835c0c6 Mon Sep 17 00:00:00 2001 From: ploc300 Date: Thu, 13 Feb 2025 15:32:31 +0100 Subject: [PATCH] Fixed Dockerfile missing dep "Vite" --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e77f5a0..5dd5682 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,13 @@ FROM node:23.7.0-alpine3.21 as builder WORKDIR /app -COPY package*.json . -RUN npm ci --omit=dev && npm cache clean --force +COPY package*.json ./ +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 @@ -15,4 +16,4 @@ COPY --from=builder /app/dist /usr/share/nginx/html EXPOSE 3006 -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"]