This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | docker.io/node | final | minor | `22.19.0-alpine3.22` -> `22.20.0-alpine3.22` | --- ### 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 this update 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMTYuNiIsInVwZGF0ZWRJblZlciI6IjQxLjExNi42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: #36 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
36 lines
815 B
Docker
36 lines
815 B
Docker
ARG REGISTRY=docker.io
|
|
FROM ${REGISTRY}/node:22.20.0-alpine3.22 AS base
|
|
|
|
LABEL version="0.0.2"
|
|
LABEL description="Astro based documentation website"
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
FROM base AS prod-deps
|
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
|
|
|
|
FROM prod-deps AS build-deps
|
|
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
|
|
|
FROM build-deps AS build
|
|
COPY . .
|
|
RUN pnpm run build
|
|
RUN pnpm prune --prod
|
|
|
|
FROM base AS runtime
|
|
COPY --from=prod-deps /app/node_modules /app/node_modules
|
|
COPY --from=build /app/dist /app/dist
|
|
|
|
ENV HOST=0.0.0.0
|
|
ENV SITE_URL=https://docs.alexlebens.dev
|
|
ENV PORT=4321
|
|
|
|
EXPOSE $PORT
|
|
CMD ["node", "./dist/server/entry.mjs"]
|