Documentation/Dockerfile
Dependency bot 69c40e100a chore(deps): update node.js to 6f7b03f (#851)
Co-authored-by: woodpecker-bot <woodpecker-bot@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/851
Reviewed-by: Robert Wolff <mahlzahn@posteo.de>
2026-07-20 09:49:53 +02:00

21 lines
667 B
Docker

# The main purpose of this Dockerfile is to install the `pnpm` package manager in the official Node.js image
# and use an init script as the entrypoint of a custom image to build and run the documentation site.
FROM node:lts-slim@sha256:6f7b03f7c2c8e2e784dcf9295400527b9b1270fd37b7e9a7285cf83b6951452d
EXPOSE 8080/tcp
SHELL [ "bash", "-c" ]
ENTRYPOINT [ "./container-init.sh" ]
ENV CI="true"
# renovate: datasource=npm depName=pnpm
ENV PNPM_VERSION="11.8.0"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get --assume-yes upgrade \
&& rm --recursive --force /var/lib/apt/lists/*
RUN npm install --global pnpm@${PNPM_VERSION}
USER node
WORKDIR /docs