Skip to content

Instantly share code, notes, and snippets.

@spk
Created October 23, 2019 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spk/8b69f84853e8db4d315846cd23766248 to your computer and use it in GitHub Desktop.
Save spk/8b69f84853e8db4d315846cd23766248 to your computer and use it in GitHub Desktop.
docker lua pretty build
FROM alpine
RUN apk add --no-cache \
bash \
build-base \
ca-certificates \
cmake \
curl \
gcc \
git \
libc-dev \
lua \
openssl-dev \
tzdata
WORKDIR /opt
RUN curl -L "https://tinyurl.com/luadist" > install.sh
RUN sh install.sh
ENV PATH="/opt/LuaDist/bin:${PATH}"
RUN luadist /opt/lua-5.1 install lua-5.1.5 "lpeg<0.11" luapretty
# cd /opt/lua-5.1
# ./bin/lua ./share/luapretty/etc/lua-highlighter.lua ./share/luapretty/etc/lua-highlighter.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment