This commit is contained in:
Daniel Fichtinger 2025-07-13 23:45:36 -04:00
parent 8f8c1f7be6
commit 87bc863c6a
3 changed files with 33 additions and 2 deletions

View file

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

View file

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