Remove preventing of messing with global, as system modules mess with global

This commit is contained in:
2025-10-04 23:27:46 +02:00
parent 17c47560cc
commit 3d8a7021fe
5 changed files with 25 additions and 24 deletions

View File

@@ -2,8 +2,8 @@
FROM nickblah/lua:5.4-luarocks-alpine AS build
RUN apk add --no-cache build-base rust cargo lua5.4-dev pkgconfig openssl-dev m4 bsd-compat-headers
# Install lua modules here.
RUN luarocks install luasec
RUN luarocks install luasocket
RUN luarocks install luasec
RUN luarocks install lua-cjson
RUN luarocks install base64
RUN luarocks install inspect
@@ -17,7 +17,7 @@ RUN cargo build --release
# Deploy stage
FROM alpine
WORKDIR /app
RUN apk update && apk add --no-cache ca-certificates openssl libgcc lua5.4-libs
RUN apk update && apk add --no-cache ca-certificates openssl libgcc lua5.4-libs readline
COPY --from=build /usr/local/bin/lua /usr/local/bin/lua
COPY --from=build /usr/local/bin/luarocks /usr/local/bin/luarocks