20 lines
344 B
Docker
20 lines
344 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /build
|
|
|
|
COPY package.json ./
|
|
COPY pnpm-lock.yaml ./
|
|
|
|
RUN corepack enable && \
|
|
pnpm install --frozen-lockfile
|
|
|
|
COPY . ./
|
|
|
|
RUN pnpm run build
|
|
|
|
FROM nginx:stable-alpine AS runner
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
COPY --from=builder /build/dist ./demo-account-create/
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|