This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [dhi.io/bun](https://dhi.io/catalog/bun) ([source](https://github.com/docker-hardened-images/definitions)) | final | patch | `1.3.10-alpine3.22` → `1.3.11-alpine3.22` | | [dhi.io/bun](https://dhi.io/catalog/bun) ([source](https://github.com/docker-hardened-images/definitions)) | stage | patch | `1.3.10-alpine3.22-dev` → `1.3.11-alpine3.22-dev` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My41OS4yIiwidXBkYXRlZEluVmVyIjoiNDMuNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: #193 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
36 lines
810 B
Docker
36 lines
810 B
Docker
ARG REGISTRY=dhi.io
|
|
FROM ${REGISTRY}/bun:1.3.11-alpine3.22-dev AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json bun.lock ./
|
|
|
|
FROM builder AS prod-deps
|
|
RUN --mount=type=cache,id=bun,target=/root/.bun/install/cache \
|
|
bun install --production --frozen-lockfile
|
|
|
|
FROM builder AS build-deps
|
|
RUN --mount=type=cache,id=bun,target=/root/.bun/install/cache \
|
|
bun install --frozen-lockfile
|
|
|
|
FROM build-deps AS build
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
FROM ${REGISTRY}/bun:1.3.11-alpine3.22 AS runtime
|
|
WORKDIR /app
|
|
COPY --from=prod-deps /app/node_modules /app/node_modules
|
|
COPY --from=build /app/dist /app/dist
|
|
|
|
ARG APP_VERSION=latest
|
|
ARG APP_VERSION
|
|
|
|
ENV HOST=0.0.0.0
|
|
ENV PORT=4321
|
|
|
|
LABEL version=$APP_VERSION
|
|
LABEL description="Astro based documentation website"
|
|
|
|
EXPOSE $PORT
|
|
CMD ["bun", "run", "./dist/server/entry.mjs"]
|