11 lines
281 B
Docker
11 lines
281 B
Docker
FROM node:24-alpine AS build
|
|
WORKDIR /build
|
|
COPY package*.json ./
|
|
RUN npm ci --no-audit --no-fund
|
|
COPY . .
|
|
RUN npm run build
|
|
FROM nginxinc/nginx-unprivileged:1.28-alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /build/dist /usr/share/nginx/html
|
|
EXPOSE 8080
|