From 5594f58d82725a9e560feca6a9201da2cc8a6201 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 15 Oct 2023 01:08:50 +0100 Subject: [PATCH] add node with pnpm --- .gitea/workflows/publish.yaml | 10 +++++++++- gitea-runner/NodeWithPnpmLatestDockerfile | 10 ++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 gitea-runner/NodeWithPnpmLatestDockerfile diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 8ac8205..afa78fe 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -36,10 +36,18 @@ jobs: username: ${{ secrets.REPO_USERNAME }} password: ${{ secrets.REPO_TOKEN }} - - name: Build and Push (Latest) + - name: Build and Push (Latest NodeJS) uses: docker/build-push-action@v4 with: push: true context: ./gitea-runner file: ./gitea-runner/NodeLatestDockerfile tags: fascinated/docker-images:node-latest + + - name: Build and Push (Latest NodeJS - pnpm) + uses: docker/build-push-action@v4 + with: + push: true + context: ./gitea-runner + file: ./gitea-runner/NodeWithPnpmLatestDockerfile + tags: fascinated/docker-images:node-pnpm-latest diff --git a/gitea-runner/NodeWithPnpmLatestDockerfile b/gitea-runner/NodeWithPnpmLatestDockerfile new file mode 100644 index 0000000..4c545d3 --- /dev/null +++ b/gitea-runner/NodeWithPnpmLatestDockerfile @@ -0,0 +1,10 @@ +FROM docker:latest + +# Install packages +RUN apk add --no-cache curl wget git bash + +# Install Node 18 +RUN apk add nodejs npm --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --allow-untrusted + +# Install pnpm +RUN npm install -g pnpm \ No newline at end of file