Files
LabWise/Dockerfile.frontend
pulipakaa24 de2d90f265
All checks were successful
Deploy to Server / deploy (push) Successful in 1m26s
automate node version
2026-04-24 18:30:10 -05:00

14 lines
320 B
Docker

ARG NODE_VERSION=25-alpine
FROM node:${NODE_VERSION} AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install
COPY . .
RUN npx vite build
# ---- Serve stage ----
FROM nginx:1.27-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 5173