diff --git a/.github/workflows/images.yml b/.github/workflows/lua.yml similarity index 82% rename from .github/workflows/images.yml rename to .github/workflows/lua.yml index 691f05e..c2039c7 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/lua.yml @@ -1,4 +1,4 @@ -name: images +name: lua on: schedule: @@ -6,6 +6,12 @@ on: push: branches: - master + paths: + - .github/workflows/lua.yml + - lua/* + - luajit/* + - luarocks/* + - nginx/* jobs: build: diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 8572f87..571079d 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -7,6 +7,7 @@ on: branches: - master paths: + - .github/workflows/node.yml - node/* jobs: diff --git a/README.md b/README.md index cb201ad..bf825c8 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,23 @@ # Docker Library -[![images](https://github.com/akornatskyy/docker-library/actions/workflows/images.yml/badge.svg)](https://github.com/akornatskyy/docker-library/actions/workflows/images.yml) +[![lua](https://github.com/akornatskyy/docker-library/actions/workflows/lua.yml/badge.svg)](https://github.com/akornatskyy/docker-library/actions/workflows/lua.yml) [![node](https://github.com/akornatskyy/docker-library/actions/workflows/node.yml/badge.svg)](https://github.com/akornatskyy/docker-library/actions/workflows/node.yml) ## Images -These images are based on the [Alpine Linux](https://alpinelinux.org/) and -built for `linux/amd64` and `linux/arm64` (except luajit 2.0 and nginx). +[Alpine Linux](https://alpinelinux.org/) `linux/amd64` and `linux/arm64` +(except luajit 2.0 and nginx): - [lua](https://hub.docker.com/r/akorn/lua/) 5.1, 5.2, 5.3, 5.4 - [luajit](https://hub.docker.com/r/akorn/luajit/) 2.0, 2.1, 2.1-edge, 2.1-openresty - [luarocks](https://hub.docker.com/r/akorn/luarocks/) lua*, luajit* - [nginx](https://hub.docker.com/r/akorn/nginx/) stable-lua*, stable-luajit*, mainline-lua*, mainline-luajit* +[Debian 12 (bookworm)](https://www.debian.org/) / +[distroless](https://github.com/GoogleContainerTools/distroless) +`linux/amd64` and `linux/arm64`: + +- [node](https://nodejs.org/) lts, current + ## Examples ```sh @@ -20,6 +26,17 @@ docker run -it --rm akorn/lua:5.1-alpine The LuaRocks images can be used as build containers, see [this example](luarocks/README.md). +The node image is configured to run script directly (the entrypoint is set to +*node*). + +```sh +docker run -it --rm akorn/node:21 --version + +docker run -it --rm -u nobody akorn/node index.js + +docker run -it --rm akorn/node --enable-source-maps index.js +``` + ## Links - [Best practices](https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/) for writing Dockerfiles