Documentation/Dockerfile
Dependency bot 1c3e108276 chore(deps): update dependency pnpm to v10.28.2 [security] (#744)
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/744
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Dependency bot <renovate-bot@noreply.codeberg.org>
Co-committed-by: Dependency bot <renovate-bot@noreply.codeberg.org>
2026-02-02 22:10:35 +01:00

21 lines
668 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:bf22df20270b654c4e9da59d8d4a3516cce6ba2852e159b27288d645b7a7eedc
EXPOSE 8080/tcp
SHELL [ "bash", "-c" ]
ENTRYPOINT [ "./container-init.sh" ]
ENV CI="true"
# renovate: datasource=npm depName=pnpm
ENV PNPM_VERSION="10.28.2"
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