mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Merge pull request #461 from Tria-plc/freight_feature/usermanagement
changes
This commit is contained in:
@@ -7,9 +7,6 @@ RUN apk add --no-cache libc6-compat
|
||||
# `--mount=type=cache,target=/pnpm/store` cache actually persists deps across builds.
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
# Puppeteer uses the system Chromium installed in the runner stage — skip the
|
||||
# ~150MB bundled-Chromium download during pnpm install.
|
||||
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
||||
RUN corepack enable
|
||||
WORKDIR /app
|
||||
|
||||
@@ -35,14 +32,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
pnpm deploy --filter="@edr/freight-api" --prod --legacy /deploy
|
||||
|
||||
FROM node:24.15.0-alpine AS runner
|
||||
# Chromium + fonts for headless PDF rendering (puppeteer). Alpine ships the
|
||||
# binary at /usr/bin/chromium-browser, which the PDF renderer auto-detects
|
||||
# (also pinned via PUPPETEER_EXECUTABLE_PATH). Without this, PDF generation
|
||||
# falls back to a degraded hand-built layout.
|
||||
RUN apk add --no-cache libc6-compat \
|
||||
chromium nss freetype harfbuzz ca-certificates ttf-freefont
|
||||
RUN apk add --no-cache libc6-compat
|
||||
ENV NODE_ENV=production
|
||||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
||||
WORKDIR /app
|
||||
RUN addgroup --system --gid 1001 nodejs \
|
||||
&& adduser --system --uid 1001 --ingroup nodejs nestjs
|
||||
|
||||
Reference in New Issue
Block a user