Docker image built with nix containing nix (flakes enabled) and Node.js for running Forgejo Actions.
Find a file
2023-11-10 18:20:41 +01:00
.gitignore Initial commit 2023-10-31 23:11:45 +01:00
flake.lock feat: convert to flake, based on 2023-11-10 18:20:41 +01:00
flake.nix feat: convert to flake, based on 2023-11-10 18:20:41 +01:00
README.md feat: convert to flake, based on 2023-11-10 18:20:41 +01:00

nix-flakes-node docker image

Heavily based on:

How to build:

nix build .#runner
image=$((docker load < ./result) | sed -n '$s/^Loaded image: //p')
docker tag "$image" nix-flakes-node:latest

Push to forgejo docker registry:

docker login git.pub.solar
docker tag nix-flakes-node:latest git.pub.solar/pub-solar/nix-flakes-node:latest
docker push git.pub.solar/pub-solar/nix-flakes-node:latest

How to test:

docker run -it --rm nix-flakes-node:latest bash

bash-5.2# node

Welcome to Node.js v20.5.1.
Type ".help" for more information.
>