c12e26e446
As `pnpm` is xx times faster than `npm`. Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/432 Co-authored-by: pat-s <patrick.schratz@gmail.com> Co-committed-by: pat-s <patrick.schratz@gmail.com>
17 lines
312 B
Docker
17 lines
312 B
Docker
FROM node:12.22.12-stretch-slim
|
|
|
|
RUN apt-get update && apt-get -y upgrade
|
|
|
|
RUN apt-get install -y git curl
|
|
RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
|
|
|
|
RUN mkdir /opt/documentation && chown node: /opt/documentation
|
|
|
|
USER node
|
|
|
|
WORKDIR /opt/documentation
|
|
|
|
RUN pnpm install
|
|
|
|
CMD [ "pnpm", "run", "serve"]
|