add node with pnpm
All checks were successful
Publish Docker Image / docker (push) Successful in 4m56s

This commit is contained in:
Lee 2023-10-15 01:08:50 +01:00
parent 6454bb6277
commit 5594f58d82
2 changed files with 19 additions and 1 deletions

@ -36,10 +36,18 @@ jobs:
username: ${{ secrets.REPO_USERNAME }} username: ${{ secrets.REPO_USERNAME }}
password: ${{ secrets.REPO_TOKEN }} password: ${{ secrets.REPO_TOKEN }}
- name: Build and Push (Latest) - name: Build and Push (Latest NodeJS)
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
push: true push: true
context: ./gitea-runner context: ./gitea-runner
file: ./gitea-runner/NodeLatestDockerfile file: ./gitea-runner/NodeLatestDockerfile
tags: fascinated/docker-images:node-latest 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

@ -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