Files

23 lines
482 B
Docker
Raw Permalink Normal View History

2026-06-27 19:08:48 +08:00
FROM node:24-alpine AS build
WORKDIR /app
RUN corepack enable
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
FROM nginx:1.29-alpine
RUN apk add --no-cache openssl
COPY nginx.conf.template /etc/nginx/templates/default.conf.template
COPY docker-entrypoint.d/10-ensure-cert.sh /docker-entrypoint.d/10-ensure-cert.sh
2026-06-28 22:00:56 +08:00
RUN chmod +x /docker-entrypoint.d/10-ensure-cert.sh
2026-06-27 19:08:48 +08:00
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 443