Files
demo-account-create/Dockerfile
2024-06-27 14:51:25 +02:00

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