From 6a062cb480a00aa26d40ede76736bb82b3022554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Le=C3=9Fmann=20=28=40MarkL4YG=29?= Date: Thu, 9 Jan 2025 18:58:29 +0100 Subject: [PATCH] experiment: Create generic node build image --- .forgejo/workflows/build-tools.yml | 21 +++++++++++++++++++++ images/node/22/Dockerfile | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 .forgejo/workflows/build-tools.yml create mode 100644 images/node/22/Dockerfile diff --git a/.forgejo/workflows/build-tools.yml b/.forgejo/workflows/build-tools.yml new file mode 100644 index 0000000..3fa77f4 --- /dev/null +++ b/.forgejo/workflows/build-tools.yml @@ -0,0 +1,21 @@ + +on: + schedule: + - cron: 6 6 * * * + workflow_dispatch: + +jobs: + cleanup_podman: + runs_on: ubuntu-24.04 + steps: + - run: podman system prune -a -f + + build-node: + runs_on: ubuntu-24.04 + depends_on: + - cleanup_podman + steps: + - uses: actions/checkout@v4 + with: + lfs: true + - run: cd images/node/22 && podman build . -t internal__node:22 diff --git a/images/node/22/Dockerfile b/images/node/22/Dockerfile new file mode 100644 index 0000000..0d27248 --- /dev/null +++ b/images/node/22/Dockerfile @@ -0,0 +1,8 @@ +FROM docker.io/library/node:22 + +USER root +RUN apt-get --no-cache update && apt-get --no-cache install -y \ + git git-lfs \ +RUN curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=10.0.0 sh - + +USER node