diff --git a/Dockerfile b/Dockerfile index 285fab5..edd22f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM node:12.22.12-stretch-slim RUN apt-get update && apt-get -y upgrade -RUN apt-get install -y git +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 @@ -10,6 +11,6 @@ USER node WORKDIR /opt/documentation -RUN npm install +RUN pnpm install -CMD [ "npm", "run", "serve"] +CMD [ "pnpm", "run", "serve"] diff --git a/README.md b/README.md index 8c6037e..1206f6c 100644 --- a/README.md +++ b/README.md @@ -17,14 +17,14 @@ the easiest way to do so is to fork the documentation repository and develop loc First, run -`npm install` +`pnpm install` to install all dependencies (they will be installed only for this project, not globally). You only have to do this once. Then run -`npm run serve` +`pnpm run serve` to start a development web server that by default is listening at `http://localhost:8080`. @@ -72,17 +72,17 @@ The parameters are: Like for local development, before building and deploying you first have to install the dependencies (once): -`npm install` +`pnpm install` To build the entire website to the `_site` directory run -`npm run build` +`pnpm run build` Instead, to directly publish the page to Codeberg pages, you can also run -`npm run deploy` +`pnpm run deploy` -which includes a call to `npm run build`. +which includes a call to `pnpm run build`. ### Technical Information diff --git a/deploy.sh b/deploy.sh index 16c2355..a8354ec 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,5 +1,5 @@ #!/bin/bash -ex -npm run build +pnpm run build DEPLOYMENT_REPO=${1:-git@codeberg.org:Codeberg-Infrastructure/static-deployments} DEPLOYMENT_BRANCH=${2:-docs}