Docker base image for Lapis, see https://hub.docker.com/r/lapytopy/lapis/, based on MilesChou's Dockerfile.
The repository is a simple image with OpenResty and Lapis Framework.
- arm64 Images (most important)
- Updated lapis and luarocks
- Doesn't remove build deps, to prevent some rocks failing to install
docker run \
-w /app \
--mount type=bind,source="$(pwd)"/src,target=/app \
--rm -it ghcr.io/ltlapy/docker-lapis:debian \
lapis new --moonscript
docker run \
-w /app \
-p 8080 \
--mount type=bind,source="$(pwd)"/src,target=/app \
--rm -it lapytopy/lapis:latest \
/bin/bash -c "moonc . && lapis server"
Note You can pin your dependencies by running following commands, for prevent dependency corruption:
luarocks build --only-deps
Warning If you can't access to the service while running, try changing port number to another.