Files
funnywolfandCopilot c696ecba3f Fix deployment script permissions
Ensure Docker Compose package scripts keep executable permissions and make the frontend certificate entrypoint executable in the image.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-28 22:00:56 +08:00

23 lines
482 B
Docker

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
RUN chmod +x /docker-entrypoint.d/10-ensure-cert.sh
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 443