Something went wrong. Try again.
Coves frontend - a photon fork
Something went wrong. Try again.
coves-frontend Dockerfile
123456789101112131415161718192021222324252627282930313233# Base image pinned by digest (multi-arch index — covers linux/amd64 + linux/arm64).# Dependabot (.github/dependabot.yml) bumps it; to bump manually:# docker buildx imagetools inspect node:22-alpine # copy the top-level DigestARG NODE_IMAGE=node:22-alpine@sha256:ce8d97f7cfc7c5386421eb932df20a29df99b1a7f469f6157d5c9956702ffadc
# Build stage — installs with the committed pnpm lockfile for reproducible buildsFROM ${NODE_IMAGE} AS builderWORKDIR /appRUN npm install -g pnpm@10.28.2COPY package.json pnpm-lock.yaml ./RUN pnpm install --frozen-lockfileCOPY . .RUN ADAPTER=node pnpm run build# Drop devDependencies so the runtime image only ships production depsRUN pnpm prune --prod
# Runtime stage## Runtime environment (ORIGIN, PUBLIC_INSTANCE_URL, PUBLIC_INTERNAL_INSTANCE,# ALLOW_HTTP_INTERNAL_INSTANCE, ...) is documented in docs/ENVIRONMENT.md.FROM ${NODE_IMAGE} AS nodeENV NODE_ENV=productionWORKDIR /appCOPY --from=builder /app/build ./buildCOPY --from=builder /app/node_modules ./node_modulesCOPY --from=builder /app/package.json ./package.jsonCOPY --from=builder /app/LICENSE /app/NOTICE ./USER nodeEXPOSE 3000HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \ CMD wget -q -O /dev/null http://127.0.0.1:3000/healthz || exit 1CMD ["node", "build/index.js"]