Skip to content

Commit

Permalink
Install minimal set of lua modules as part of docker-minimal image to…
Browse files Browse the repository at this point in the history
… match packages
  • Loading branch information
neilcook committed Jun 4, 2024
1 parent 86bc9b1 commit 44413da
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docker/wforce_image/Dockerfile.minimal
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
FROM alpine:3.19 as lua_build

RUN apk update && \
apk add \
luajit-dev \
luarocks5.1 \
gcc \
musl-dev \
openssl-dev \
hiredis-dev \
openldap-dev

RUN luarocks-5.1 config variables.LUA_INCDIR /usr/include/luajit-2.1

RUN luarocks-5.1 install elasticsearch-lua && \
luarocks-5.1 install lua-cjson && \
luarocks-5.1 install lualdap && \
luarocks-5.1 install luasocket && \
luarocks-5.1 install luasec && \
luarocks-5.1 install lua-resty-template && \
luarocks-5.1 install redis-lua

FROM alpine:3.19 as wforce_build

RUN apk update && \
Expand Down Expand Up @@ -68,12 +90,15 @@ FROM alpine:3.19 as wforce_image
WORKDIR /wforce/

COPY --from=wforce_build /wforce/install/ /
COPY --from=lua_build /usr/local/share/lua /usr/local/share/lua
COPY --from=lua_build /usr/local/lib/lua /usr/local/lib/lua

RUN apk update && \
apk add \
boost-filesystem \
curl \
openssl \
libldap \
hiredis \
readline \
libmaxminddb \
Expand Down

0 comments on commit 44413da

Please sign in to comment.