Fork of https://github.com/mkottman/luacrypto to allow build in Ubuntu 18.04 Docker Image (20.04 doesn't work).
Usage
Use in your own Dockerfile
, like this:
FROM ubuntu:18.04 as luacrypto-builder
RUN apt-get update && apt-get install -y \
build-essential \
lua5.1 liblua5.1-dev \
git \
autoconf \
libssl1.0-dev
RUN git clone https://github.com/dersimn/luacrypto /opt/luacrypto \
&& cd /opt/luacrypto \
&& autoreconf -i \
&& ./configure \
&& make
# ------------------------------------------------------------------------------
FROM ubuntu:18.04
COPY --from=luacrypto-builder /opt/luacrypto/src/.libs/crypto.so /usr/local/lib/lua/5.1/crypto.so
# ... your own code here ...