From 87bc863c6a4c26699a5dbeb26617346e9d5ed902 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 13 Jul 2025 23:45:36 -0400 Subject: [PATCH] push --- README.md | 25 +++++++++++++++++++++++++ justfile | 10 ++++++++-- Dockerfile => latest/Dockerfile | 0 3 files changed, 33 insertions(+), 2 deletions(-) rename Dockerfile => latest/Dockerfile (100%) diff --git a/README.md b/README.md index 829a2b0..48b9951 100644 --- a/README.md +++ b/README.md @@ -1 +1,26 @@ # based-alpine + +This image is based on `node:alpine` with the following additional packages +available: + +- `bash` +- `curl` +- `git` +- `coreutils` +- `uv` + +These are the dependencies I install most commonly in workflows -- so it made +sense for me to create an image containing them. I use it to make creating new +Forgejo actions simpler. On my instance [git.ficd.sh](https://git.ficd.sh), +where I've configured an additional label in the runner, I only need to add the +following: + +```yaml +runs-on: based-alpine +``` + +To run it yourself: + +```sh +docker run --rm -it git.ficd.sh/ficd/based-alpine:latest bash +``` diff --git a/justfile b/justfile index 80fc38f..27d15ea 100644 --- a/justfile +++ b/justfile @@ -2,10 +2,16 @@ name := 'git.ficd.sh/ficd/based-alpine' # build the image build arg="latest": + #!/bin/sh + cd {{arg}} docker build -t {{name}}:{{arg}} . # push the image push arg="latest": + #!/bin/sh + cd {{arg}} docker push {{name}}:{{arg}} # run cmd in image -run arg="sh": - docker run --rm -it {{name}} {{arg}} +run arg="latest": + #!/bin/sh + cd {{arg}} + docker run --rm -it {{name}} bash diff --git a/Dockerfile b/latest/Dockerfile similarity index 100% rename from Dockerfile rename to latest/Dockerfile