# lua-docker **Repository Path**: mirrors_GUI/lua-docker ## Basic Information - **Project Name**: lua-docker - **Description**: Minimal, automated, and up-to-date Docker images for different Lua and LuaJIT versions. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lua-docker Minimal, automated, and up-to-date Docker images for different Lua and LuaJIT versions. Provides variants for: - Debian, Alpine, and Ubuntu base images - With LuaRocks - LuaJIT - LuaJIT built with Lua 5.2 compatibility mode This repo provides the source for both Lua and LuaJIT images. The different images can be found at: - [`nickblah/lua`](https://hub.docker.com/r/nickblah/lua/): Lua images. - [`nickblah/luajit`](https://hub.docker.com/r/nickblah/luajit/): LuaJIT images. New versions of Lua, LuaJIT, and LuaRocks should automatically be detected and trigger new docker images to built, tagged, and pushed by a daily [GitHub Actions workflow](https://github.com/GUI/lua-docker/blob/main/.github/workflows/main.yml). ## Supported Tags and Respective Dockerfile Links ### [`nickblah/lua`](https://hub.docker.com/r/nickblah/lua/) - `5`, `5-debian`, `5-trixie`, `5.5`, `5.5-debian`, `5.5-trixie`, `5.5.0`, `5.5.0-debian`, `5.5.0-trixie`, `debian`, `latest`: [lua-5.5/trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/trixie/Dockerfile) - `5-bookworm`, `5.5-bookworm`, `5.5.0-bookworm`: [lua-5.5/bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/bookworm/Dockerfile) - `5-luarocks`, `5-luarocks-debian`, `5-luarocks-trixie`, `5.5-luarocks`, `5.5-luarocks-debian`, `5.5-luarocks-trixie`, `5.5.0-luarocks`, `5.5.0-luarocks-debian`, `5.5.0-luarocks-trixie`, `luarocks`, `luarocks-debian`: [lua-5.5/luarocks-trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/luarocks-trixie/Dockerfile) - `5-luarocks-bookworm`, `5.5-luarocks-bookworm`, `5.5.0-luarocks-bookworm`: [lua-5.5/luarocks-bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/luarocks-bookworm/Dockerfile) - `5-alpine`, `5-alpine3`, `5-alpine3.23`, `5.5-alpine`, `5.5-alpine3.23`, `5.5.0-alpine`, `5.5.0-alpine3`, `5.5.0-alpine3.23`, `alpine`: [lua-5.5/alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/alpine3.23/Dockerfile) - `5-alpine3.22`, `5.5-alpine3.22`, `5.5.0-alpine3.22`: [lua-5.5/alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/alpine3.22/Dockerfile) - `5-luarocks-alpine`, `5-luarocks-alpine3`, `5-luarocks-alpine3.23`, `5.5-luarocks-alpine`, `5.5-luarocks-alpine3.23`, `5.5.0-luarocks-alpine`, `5.5.0-luarocks-alpine3`, `5.5.0-luarocks-alpine3.23`, `luarocks-alpine`: [lua-5.5/luarocks-alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/luarocks-alpine3.23/Dockerfile) - `5-luarocks-alpine3.22`, `5.5-luarocks-alpine3.22`, `5.5.0-luarocks-alpine3.22`: [lua-5.5/luarocks-alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/luarocks-alpine3.22/Dockerfile) - `5-rolling`, `5.5-rolling`, `5.5.0-rolling`: [lua-5.5/rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/rolling/Dockerfile) - `5-plucky`, `5.5-plucky`, `5.5.0-plucky`: [lua-5.5/plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/plucky/Dockerfile) - `5-luarocks-rolling`, `5.5-luarocks-rolling`, `5.5.0-luarocks-rolling`: [lua-5.5/luarocks-rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/luarocks-rolling/Dockerfile) - `5-luarocks-plucky`, `5.5-luarocks-plucky`, `5.5.0-luarocks-plucky`: [lua-5.5/luarocks-plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.5/luarocks-plucky/Dockerfile) - `5.4`, `5.4-debian`, `5.4-trixie`, `5.4.8`, `5.4.8-debian`, `5.4.8-trixie`: [lua-5.4/trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/trixie/Dockerfile) - `5.4-bookworm`, `5.4.8-bookworm`: [lua-5.4/bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/bookworm/Dockerfile) - `5.4-luarocks`, `5.4-luarocks-debian`, `5.4-luarocks-trixie`, `5.4.8-luarocks`, `5.4.8-luarocks-debian`, `5.4.8-luarocks-trixie`: [lua-5.4/luarocks-trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/luarocks-trixie/Dockerfile) - `5.4-luarocks-bookworm`, `5.4.8-luarocks-bookworm`: [lua-5.4/luarocks-bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/luarocks-bookworm/Dockerfile) - `5-alpine3`, `5.4-alpine`, `5.4-alpine3.23`, `5.4.8-alpine`, `5.4.8-alpine3`, `5.4.8-alpine3.23`: [lua-5.4/alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/alpine3.23/Dockerfile) - `5.4-alpine3.22`, `5.4.8-alpine3.22`: [lua-5.4/alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/alpine3.22/Dockerfile) - `5-luarocks-alpine3`, `5.4-luarocks-alpine`, `5.4-luarocks-alpine3.23`, `5.4.8-luarocks-alpine`, `5.4.8-luarocks-alpine3`, `5.4.8-luarocks-alpine3.23`: [lua-5.4/luarocks-alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/luarocks-alpine3.23/Dockerfile) - `5.4-luarocks-alpine3.22`, `5.4.8-luarocks-alpine3.22`: [lua-5.4/luarocks-alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/luarocks-alpine3.22/Dockerfile) - `5.4-rolling`, `5.4.8-rolling`: [lua-5.4/rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/rolling/Dockerfile) - `5.4-plucky`, `5.4.8-plucky`: [lua-5.4/plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/plucky/Dockerfile) - `5.4-luarocks-rolling`, `5.4.8-luarocks-rolling`: [lua-5.4/luarocks-rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/luarocks-rolling/Dockerfile) - `5.4-luarocks-plucky`, `5.4.8-luarocks-plucky`: [lua-5.4/luarocks-plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.4/luarocks-plucky/Dockerfile) - `5.3`, `5.3-debian`, `5.3-trixie`, `5.3.6`, `5.3.6-debian`, `5.3.6-trixie`: [lua-5.3/trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/trixie/Dockerfile) - `5.3-bookworm`, `5.3.6-bookworm`: [lua-5.3/bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/bookworm/Dockerfile) - `5.3-luarocks`, `5.3-luarocks-debian`, `5.3-luarocks-trixie`, `5.3.6-luarocks`, `5.3.6-luarocks-debian`, `5.3.6-luarocks-trixie`: [lua-5.3/luarocks-trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/luarocks-trixie/Dockerfile) - `5.3-luarocks-bookworm`, `5.3.6-luarocks-bookworm`: [lua-5.3/luarocks-bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/luarocks-bookworm/Dockerfile) - `5-alpine3`, `5.3-alpine`, `5.3-alpine3.23`, `5.3.6-alpine`, `5.3.6-alpine3`, `5.3.6-alpine3.23`: [lua-5.3/alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/alpine3.23/Dockerfile) - `5.3-alpine3.22`, `5.3.6-alpine3.22`: [lua-5.3/alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/alpine3.22/Dockerfile) - `5-luarocks-alpine3`, `5.3-luarocks-alpine`, `5.3-luarocks-alpine3.23`, `5.3.6-luarocks-alpine`, `5.3.6-luarocks-alpine3`, `5.3.6-luarocks-alpine3.23`: [lua-5.3/luarocks-alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/luarocks-alpine3.23/Dockerfile) - `5.3-luarocks-alpine3.22`, `5.3.6-luarocks-alpine3.22`: [lua-5.3/luarocks-alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/luarocks-alpine3.22/Dockerfile) - `5.3-rolling`, `5.3.6-rolling`: [lua-5.3/rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/rolling/Dockerfile) - `5.3-plucky`, `5.3.6-plucky`: [lua-5.3/plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/plucky/Dockerfile) - `5.3-luarocks-rolling`, `5.3.6-luarocks-rolling`: [lua-5.3/luarocks-rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/luarocks-rolling/Dockerfile) - `5.3-luarocks-plucky`, `5.3.6-luarocks-plucky`: [lua-5.3/luarocks-plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/lua-5.3/luarocks-plucky/Dockerfile) ### [`nickblah/luajit`](https://hub.docker.com/r/nickblah/luajit/) - `2`, `2-debian`, `2-trixie`, `2.1`, `2.1-debian`, `2.1-trixie`, `2.1.1765228720`, `2.1.1765228720-debian`, `2.1.1765228720-trixie`, `debian`, `latest`: [luajit-2.1/trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/trixie/Dockerfile) - `2-bookworm`, `2.1-bookworm`, `2.1.1765228720-bookworm`: [luajit-2.1/bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/bookworm/Dockerfile) - `2-luarocks`, `2-luarocks-debian`, `2-luarocks-trixie`, `2.1-luarocks`, `2.1-luarocks-debian`, `2.1-luarocks-trixie`, `2.1.1765228720-luarocks`, `2.1.1765228720-luarocks-debian`, `2.1.1765228720-luarocks-trixie`, `luarocks`, `luarocks-debian`: [luajit-2.1/luarocks-trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/luarocks-trixie/Dockerfile) - `2-luarocks-bookworm`, `2.1-luarocks-bookworm`, `2.1.1765228720-luarocks-bookworm`: [luajit-2.1/luarocks-bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/luarocks-bookworm/Dockerfile) - `2-lua52compat`, `2-lua52compat-debian`, `2-lua52compat-trixie`, `2.1-lua52compat`, `2.1-lua52compat-debian`, `2.1-lua52compat-trixie`, `2.1.1765228720-lua52compat`, `2.1.1765228720-lua52compat-debian`, `2.1.1765228720-lua52compat-trixie`, `lua52compat`, `lua52compat-debian`: [luajit-2.1/lua52compat-trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-trixie/Dockerfile) - `2-lua52compat-bookworm`, `2.1-lua52compat-bookworm`, `2.1.1765228720-lua52compat-bookworm`: [luajit-2.1/lua52compat-bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-bookworm/Dockerfile) - `2-lua52compat-luarocks`, `2-lua52compat-luarocks-debian`, `2-lua52compat-luarocks-trixie`, `2.1-lua52compat-luarocks`, `2.1-lua52compat-luarocks-debian`, `2.1-lua52compat-luarocks-trixie`, `2.1.1765228720-lua52compat-luarocks`, `2.1.1765228720-lua52compat-luarocks-debian`, `2.1.1765228720-lua52compat-luarocks-trixie`, `lua52compat-luarocks`, `lua52compat-luarocks-debian`: [luajit-2.1/lua52compat-luarocks-trixie/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-luarocks-trixie/Dockerfile) - `2-lua52compat-luarocks-bookworm`, `2.1-lua52compat-luarocks-bookworm`, `2.1.1765228720-lua52compat-luarocks-bookworm`: [luajit-2.1/lua52compat-luarocks-bookworm/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-luarocks-bookworm/Dockerfile) - `2-alpine`, `2-alpine3`, `2-alpine3.23`, `2.1-alpine`, `2.1-alpine3.23`, `2.1.1765228720-alpine`, `2.1.1765228720-alpine3`, `2.1.1765228720-alpine3.23`, `alpine`: [luajit-2.1/alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/alpine3.23/Dockerfile) - `2-alpine3.22`, `2.1-alpine3.22`, `2.1.1765228720-alpine3.22`: [luajit-2.1/alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/alpine3.22/Dockerfile) - `2-luarocks-alpine`, `2-luarocks-alpine3`, `2-luarocks-alpine3.23`, `2.1-luarocks-alpine`, `2.1-luarocks-alpine3.23`, `2.1.1765228720-luarocks-alpine`, `2.1.1765228720-luarocks-alpine3`, `2.1.1765228720-luarocks-alpine3.23`, `luarocks-alpine`: [luajit-2.1/luarocks-alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/luarocks-alpine3.23/Dockerfile) - `2-luarocks-alpine3.22`, `2.1-luarocks-alpine3.22`, `2.1.1765228720-luarocks-alpine3.22`: [luajit-2.1/luarocks-alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/luarocks-alpine3.22/Dockerfile) - `2-lua52compat-alpine`, `2-lua52compat-alpine3`, `2-lua52compat-alpine3.23`, `2.1-lua52compat-alpine`, `2.1-lua52compat-alpine3.23`, `2.1.1765228720-lua52compat-alpine`, `2.1.1765228720-lua52compat-alpine3`, `2.1.1765228720-lua52compat-alpine3.23`, `lua52compat-alpine`: [luajit-2.1/lua52compat-alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-alpine3.23/Dockerfile) - `2-lua52compat-alpine3.22`, `2.1-lua52compat-alpine3.22`, `2.1.1765228720-lua52compat-alpine3.22`: [luajit-2.1/lua52compat-alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-alpine3.22/Dockerfile) - `2-lua52compat-luarocks-alpine`, `2-lua52compat-luarocks-alpine3`, `2-lua52compat-luarocks-alpine3.23`, `2.1-lua52compat-luarocks-alpine`, `2.1-lua52compat-luarocks-alpine3.23`, `2.1.1765228720-lua52compat-luarocks-alpine`, `2.1.1765228720-lua52compat-luarocks-alpine3`, `2.1.1765228720-lua52compat-luarocks-alpine3.23`, `lua52compat-luarocks-alpine`: [luajit-2.1/lua52compat-luarocks-alpine3.23/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-luarocks-alpine3.23/Dockerfile) - `2-lua52compat-luarocks-alpine3.22`, `2.1-lua52compat-luarocks-alpine3.22`, `2.1.1765228720-lua52compat-luarocks-alpine3.22`: [luajit-2.1/lua52compat-luarocks-alpine3.22/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-luarocks-alpine3.22/Dockerfile) - `2-rolling`, `2.1-rolling`, `2.1.1765228720-rolling`: [luajit-2.1/rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/rolling/Dockerfile) - `2-plucky`, `2.1-plucky`, `2.1.1765228720-plucky`: [luajit-2.1/plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/plucky/Dockerfile) - `2-luarocks-rolling`, `2.1-luarocks-rolling`, `2.1.1765228720-luarocks-rolling`: [luajit-2.1/luarocks-rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/luarocks-rolling/Dockerfile) - `2-luarocks-plucky`, `2.1-luarocks-plucky`, `2.1.1765228720-luarocks-plucky`: [luajit-2.1/luarocks-plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/luarocks-plucky/Dockerfile) - `2-lua52compat-rolling`, `2.1-lua52compat-rolling`, `2.1.1765228720-lua52compat-rolling`: [luajit-2.1/lua52compat-rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-rolling/Dockerfile) - `2-lua52compat-plucky`, `2.1-lua52compat-plucky`, `2.1.1765228720-lua52compat-plucky`: [luajit-2.1/lua52compat-plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-plucky/Dockerfile) - `2-lua52compat-luarocks-rolling`, `2.1-lua52compat-luarocks-rolling`, `2.1.1765228720-lua52compat-luarocks-rolling`: [luajit-2.1/lua52compat-luarocks-rolling/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-luarocks-rolling/Dockerfile) - `2-lua52compat-luarocks-plucky`, `2.1-lua52compat-luarocks-plucky`, `2.1.1765228720-lua52compat-luarocks-plucky`: [luajit-2.1/lua52compat-luarocks-plucky/Dockerfile](https://github.com/GUI/lua-docker/blob/main/luajit-2.1/lua52compat-luarocks-plucky/Dockerfile) ## Image Variants ### `nickblah/lua:` The default Lua image. Provides Lua. Uses Debian Linux for base image. ### `nickblah/lua:-alpine` Provides Lua. Uses Alpine Linux for base image. ### `nickblah/lua:-luarocks` Provides Lua and LuaRocks. Uses Debian Linux for base image. ### `nickblah/lua:-luarocks-alpine` Provides Lua and LuaRocks. Uses Alpine Linux for base image. ### `nickblah/luajit:` The default LuaJIT image. Provides LuaJIT. Uses Debian Linux for base image. ### `nickblah/luajit:-alpine` Provides LuaJIT. Uses Alpine Linux for base image. ### `nickblah/luajit:-luarocks` Provides LuaJIT and LuaRocks. Uses Debian Linux for base image. ### `nickblah/luajit:-luarocks-alpine` Provides LuaJIT and LuaRocks. Uses Alpine Linux for base image. ### `nickblah/luajit:-lua52compat` Provides LuaJIT. LuaJIT compiled with `LUAJIT_ENABLE_LUA52COMPAT`. Uses Debian Linux for base image. ### `nickblah/luajit:-lua52compat-alpine` Provides LuaJIT. LuaJIT compiled with `LUAJIT_ENABLE_LUA52COMPAT`. Uses Alpine Linux for base image. ### `nickblah/luajit:-lua52compat-luarocks` Provides LuaJIT and LuaRocks. LuaJIT compiled with `LUAJIT_ENABLE_LUA52COMPAT`. Uses Debian Linux for base image. ### `nickblah/luajit:-lua52compat-luarocks-alpine` Provides LuaJIT and LuaRocks. LuaJIT compiled with `LUAJIT_ENABLE_LUA52COMPAT`. Uses Alpine Linux for base image. ## Installing C Libraries These base images are minimal, so they only contain the necessary dependencies for running Lua and installing pure-Lua LuaRocks modules. If you need to install LuaRocks modules that include C extensions or need compiling/building, then you'll first need to install the necessary dependencies (for example, make, gcc, etc). The exact dependencies may vary depending on the module's requirements, but to install basic build dependencies, the following installation commands can be used: - For Debian based images: ```sh apt-get update && apt-get install -y build-essential ``` - For Alpine based images: ```sh apk add --no-cache build-base ```