Files
tranquil-pds/frontend/Dockerfile
isabel bc5e0e0446 build(frontend): use pnpm
deno is evil
2026-04-12 16:01:21 +00:00

13 lines
336 B
Docker

FROM node:24-alpine AS builder
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . ./
RUN pnpm build
FROM nginx:1.29-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80