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;"]