HUB
Sign inSign up

aljazmc/actions-alpine

By aljazmc

•Updated 2 days ago

Node.js 26 (unofficial musl build), Corepack, the Docker CLI, git, FFmpeg, ShellCheck and Ruff

Image
Integration & delivery
Developer tools
0

970

aljazmc/actions-alpine repository overview

⁠aljazmc/actions-alpine

An Alpine image for running GitHub Actions workflows locally with act⁠, or as a CI job container: Node.js, Corepack, the Docker CLI, git, FFmpeg, ShellCheck and Ruff.

Docker pulls Image size Version platforms: amd64 | arm64 Alpine: 3.24.4 Node.js: 26.13.1 Node.js license: MIT CI Dockerfile license: MIT

Docker Hub⁠ · Source⁠ · All images⁠

⁠Overview

Base imagealpine:3.24.4
SoftwareNode.js 26.13.1 (unofficial musl build, sha256 checked) with Corepack 0.36.0
Also includednpm, Yarn (through Corepack), git, the Docker CLI, FFmpeg, Python 3, bash, ShellCheck, Ruff 0.17.6 (pip)
Useractions (uid 1000) with passwordless doas (doas apk add ...)
Tagslatest, 3.24.4, 3.24.4-YYYYMMDD (the Alpine Linux version)

⁠Quick start

Run in an empty directory; the commands work on the files of the current directory, mounted as the home directory of the container. CI⁠ runs these commands to check that they work.

# open a shell, with the current directory as the home directory
docker run --rm -it -v .:/home/actions -w /home/actions aljazmc/actions-alpine

# the tools a CI job gets
docker run --rm aljazmc/actions-alpine sh -c "node --version && corepack --version && git --version && docker --version && ruff version"

# lint the shell scripts and the Python code of the current directory
docker run --rm -v .:/home/actions -w /home/actions aljazmc/actions-alpine sh -c "shellcheck *.sh && ruff check --no-cache ."

⁠Usage with Docker Compose

## docker-compose.yml file
services:
    node:
        image: aljazmc/actions-alpine
        working_dir: /home/actions
        volumes:
            - .:/home/actions
        environment:
            HOME: /home/actions
            NODE_ENV: development
        network_mode: host

## print corepack version
docker-compose run --rm node corepack -v

## set yarn version to berry
docker-compose run --rm node yarn set version berry

## initialize a new project
docker-compose run --rm node yarn init

## use shell inside the container to print environment variables
docker-compose run --rm node sh -c "printenv"

⁠Notes

  • Not intended for production use.

⁠Tags

  • latest: the newest build.
  • 3.24.4: the Alpine Linux version in the image, e.g. aljazmc/actions-alpine:3.24.4. Use it to stay on a known version.
  • 3.24.4-YYYYMMDD: the same version, built on that date (UTC), e.g. 3.24.4-20261124. Every build gets its own tag that never moves, so use it where you need exactly the same image again.
  • Corepack is pinned with COREPACK_VERSION in the Dockerfile (npm install -g [email protected]). Node.js is pinned to 26.13.1 with NODE_VERSION.

⁠License

The Dockerfile, the scripts and this README are part of aljazmc/dockerfiles⁠, released under the MIT License⁠.

The software in the image keeps its own license:

SoftwareLicenseIn the image
Node.js⁠MIT/usr/local/LICENSE

Every other package keeps its license too: apk info --license <package> shows it on Alpine, /usr/share/doc/<package>/copyright on Debian.

Tag summary

Content type

Image

Digest

sha256:eb014302a…

Size

278.6 MB

Last updated

2 days ago

docker pull aljazmc/actions-alpine