mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-13 20:39:33 -05:00
6af32f6575
- Install lua and luarocks from the OS package repository instead of manually downloading them. Also the luarock fork looked unmaintained. - Remove luarocks from the image after installing lua packages because it's not needed after that
22 lines
372 B
Bash
Executable file
22 lines
372 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
apk add --no-cache \
|
|
lua5.4
|
|
|
|
apk add --no-cache --virtual .lua-build-deps \
|
|
gcc \
|
|
lua5.4-dev \
|
|
luarocks5.4 \
|
|
make \
|
|
musl-dev \
|
|
readline-dev
|
|
|
|
ln -s /usr/bin/lua5.4 /usr/bin/lua
|
|
|
|
luarocks-5.4 install luacheck
|
|
luarocks-5.4 install argparse
|
|
luarocks-5.4 install luafilesystem
|
|
|
|
apk del --no-network --purge .lua-build-deps
|