-
-
Save JDaance/7ed965c43d08981de9139576c3c01cd4 to your computer and use it in GitHub Desktop.
lacord bot Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# below stolen from https://github.com/GUI/lua-docker | |
FROM ubuntu:focal | |
RUN set -ex \ | |
&& saved_apt_mark="$(apt-mark showmanual)" \ | |
&& apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
curl \ | |
gcc \ | |
libc6-dev \ | |
make \ | |
dirmngr \ | |
gnupg \ | |
unzip \ | |
&& curl -fsSL -o /tmp/lua.tar.gz "https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz" \ | |
&& cd /tmp \ | |
&& echo "1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3 *lua.tar.gz" | sha256sum -c - \ | |
&& mkdir /tmp/lua \ | |
&& tar -xf /tmp/lua.tar.gz -C /tmp/lua --strip-components=1 \ | |
&& cd /tmp/lua \ | |
&& make \ | |
&& make install \ | |
&& ln -s /usr/local/bin/luajit-2.1.0-beta3 /usr/local/bin/luajit \ | |
&& curl -fsSL -o /tmp/luarocks.tar.gz "https://luarocks.org/releases/luarocks-3.8.0.tar.gz" \ | |
&& curl -fsSL -o /tmp/luarocks.tar.gz.asc "https://luarocks.org/releases/luarocks-3.8.0.tar.gz.asc" \ | |
&& cd /tmp \ | |
&& mkdir /tmp/luarocks \ | |
&& tar -xf /tmp/luarocks.tar.gz -C /tmp/luarocks --strip-components=1 \ | |
&& cd /tmp/luarocks \ | |
&& ./configure \ | |
&& make \ | |
&& make install \ | |
&& cd / \ | |
&& apt-mark auto '.*' > /dev/null \ | |
&& apt-mark manual $saved_apt_mark \ | |
&& apt-mark manual \ | |
ca-certificates \ | |
curl \ | |
unzip \ | |
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& rm -rf /tmp/lua /tmp/lua.tar.gz \ | |
&& rm -rf /tmp/luarocks /tmp/luarocks.tar.gz \ | |
&& luarocks --version \ | |
&& luajit -v | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
build-essential \ | |
make \ | |
cmake \ | |
autoconf \ | |
automake \ | |
libc6-dev \ | |
gcc-multilib \ | |
libssl-dev \ | |
zlib1g-dev \ | |
git | |
RUN luarocks install http | |
RUN luarocks install lua-zlib | |
RUN luarocks install lua-cjson-219 | |
RUN luarocks install dkjson | |
RUN luarocks install luatweetnacl | |
RUN luarocks install inspect | |
RUN luarocks install utf8 | |
WORKDIR /workdir/lua/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment