added updated piazza.lmdb, debugger, and set bitser to not serialize metatables

This commit is contained in:
Brian Sakal
2022-05-19 17:10:28 -04:00
parent e88ee5fe74
commit e43d62b6cf
6 changed files with 24 additions and 21 deletions
+5 -9
View File
@@ -1,12 +1,7 @@
FROM docker.io/library/alpine:3.14
# we need bash for luaver:
RUN apk add --no-cache bash && echo "" > /root/.ash_history
RUN sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd
ENV LC_ALL=en_US.UTF-8
# requirements for various luarocks packages:
RUN apk add --no-cache build-base bsd-compat-headers m4 openssl-dev libmagic libuuid lmdb lmdb-dev git readline-dev autoconf automake libtool zlib-dev vips ncurses wget unzip openssl util-linux-dev
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/libvips.so.42 /usr/lib/libvips.so \
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", "\
@@ -31,7 +26,8 @@ RUN ["bash", "-c", "\
&& luarocks install magic \
&& luarocks install lightningmdb \
&& luarocks install lua_uuid \
&& luarocks install lua-vips"]
&& luarocks install lua-vips \
&& luarocks install debugger"]
WORKDIR /app/server
EXPOSE 8000
CMD ["bash", "-c", "{ . ~/.luaver/luaver; } ; luajit ./server.lua"]