renovate/stability-days Updates have met minimum release age requirement
CI / policy (pull_request) Successful in 14s
CI / validate (pull_request) Successful in 27s
CI / build (pull_request) Successful in 25s
CI / benchmark (pull_request) Successful in 1m8s
CI / security (pull_request) Successful in 1m5s
CI / test (pull_request) Successful in 3m47s
CI / images (pull_request) Successful in 55s
CI / required (pull_request) Successful in 4s
CI / policy (push) Successful in 11s
CI / validate (push) Successful in 28s
CI / build (push) Successful in 25s
CI / benchmark (push) Successful in 1m1s
CI / security (push) Successful in 54s
CI / test (push) Successful in 3m47s
CI / images (push) Successful in 1m17s
CI / required (push) Successful in 2s
31 lines
989 B
Docker
31 lines
989 B
Docker
# Stage 1: Build the Angular application and the Bun static server
|
|
FROM oven/bun:1.4.4-alpine@sha256:4cf82f5686b196504fe119db3fcd9185b191f82ece82c40680e597228ec6070a 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.4-alpine@sha256:4cf82f5686b196504fe119db3fcd9185b191f82ece82c40680e597228ec6070a 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"]
|