Files
vac-optimizer/Dockerfile
T
nessarandClaude Opus 5.5 b69437302d
CI / policy (pull_request) Successful in 9s
CI / validate (pull_request) Successful in 34s
CI / build (pull_request) Successful in 20s
CI / benchmark (pull_request) Successful in 1m29s
CI / security (pull_request) Successful in 59s
CI / test (pull_request) Successful in 2m43s
CI / images (pull_request) Successful in 1m14s
CI / required (pull_request) Successful in 1s
CI / policy (push) Successful in 11s
CI / validate (push) Successful in 27s
CI / build (push) Successful in 37s
CI / benchmark (push) Successful in 1m7s
CI / security (push) Successful in 59s
CI / test (push) Successful in 2m40s
CI / images (push) Successful in 1m13s
CI / required (push) Successful in 1s
chore(deps): update bun to v1.4.5
Replaces Renovate PR #317, which bumped package.json alone and so failed
scripts/install-bun.sh. Move every pin together: packageManager, @types/bun,
the installer's version and four SHA-256 values (from the release's
SHASUMS256.txt), and both Docker stages to oven/bun:1.4.5-alpine, which also
ends the 1.4.4 drift the separate Docker update left in the Dockerfile.
Renovate now groups these packages in one PR without automerge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3CzBZP96zgTG9hCgLw
2026-11-30 11:13:56 +01:00

31 lines
989 B
Docker

# Stage 1: Build the Angular application and the Bun static server
FROM oven/bun:1.4.5-alpine@sha256:da816670775f4c2b4e990b6b1847cf5540dcdc721a42033dd331ce7a88ba6a3b AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
# bunfig.toml makes the Node-shebang Angular CLI run on Bun; the image has no Node
RUN bun run build
# Stage 2: Production image
FROM oven/bun:1.4.5-alpine@sha256:da816670775f4c2b4e990b6b1847cf5540dcdc721a42033dd331ce7a88ba6a3b AS production
WORKDIR /app
# The server is a self-contained Bun bundle that serves the browser build, so
# the runtime has no dependencies to install.
COPY --from=builder /app/dist ./dist
ENV NODE_ENV=production
EXPOSE 4000
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD bun -e "fetch('http://localhost:' + (process.env.PORT || 4000) + '/').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"
CMD ["bun", "dist/vac-optimizer/server/server.js"]