Files
2025-02-13 15:32:31 +01:00

20 lines
290 B
Docker

FROM node:23.7.0-alpine3.21 as builder
WORKDIR /app
COPY package*.json ./
RUN npm ci && npm cache clean --force
COPY . ./
RUN npm install -g vite
RUN npx vite build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3006
CMD ["nginx", "-g", "daemon off;"]