You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.5 KiB
Docker

FROM docker.io/library/debian:11
RUN apt update && apt upgrade -y && apt install -y build-essential m4 libssl-dev libmagic-dev libuuid1 uuid-dev liblmdb0 liblmdb-dev git libreadline-dev autoconf automake libtool libz-dev libvips ncurses-bin wget unzip openssl
# install luaver and install luarocks packages:
RUN ln -s /usr/lib/x86_64-linux-gnu/libvips.so.42 /usr/lib/libvips.so \
&& git config --global url."https://".insteadOf git:// \
&& git clone https://git.sakal.us/brian/luaver.git ~/.luaver
RUN ["bash", "-c", "\
{ . ~/.luaver/luaver; } \
; { yes | luaver install 5.1.5; } \
&& { yes | luaver install-luajit 2.0.5; } \
&& luaver use 5.1.5 && luaver set-default 5.1.5 \
&& luaver use-luajit 2.0.5 && luaver set-default-luajit 2.0.5 \
&& { yes | luaver install-luarocks 3.8.0; } \
&& luaver use-luarocks 3.8.0 && luaver set-default-luarocks 3.8.0 \
&& luarocks install luarocks-fetch-gitrec \
&& luarocks install compat53 \
&& luarocks install cqueues \
&& luarocks install lpeg \
&& luarocks install lpeg_patterns \
&& luarocks install luafilesystem \
&& luarocks install http \
&& luarocks install lua-cjson \
&& luarocks install mimetypes \
&& luarocks install lrandom \
&& luarocks install luaprompt \
&& luarocks install magic \
&& luarocks install lightningmdb \
&& luarocks install lua_uuid \
&& luarocks install lua-vips \
&& luarocks install debugger"]
WORKDIR /app/server
EXPOSE 8000
CMD ["bash", "-c", "{ . ~/.luaver/luaver; } ; luajit ./server.lua"]