From 71f795bae5e867611aef1ba9fc46325d6035d0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sat, 7 Jun 2025 03:45:55 +0300 Subject: [PATCH] trim Dockerfile now that upstream luarocks is fixed and alpine upgraded luarocks --- Dockerfile | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9981b7..1182324 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,22 +10,11 @@ RUN apk add --no-cache git make gcc g++ musl-dev libffi-dev openssl-dev sqlite-d WORKDIR /app COPY . . RUN eval "$(luarocks --lua-version=5.1 path)" -# listing all deps one by one until a more stable solution to the luarocks problem -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/javierguerragiraldez/lsqlite3-0.9.6-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/kikito/ansicolors-1.0.2-3.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/argparse/argparse-0.7.1-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/tieske/date-2.2.1-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/leafo/etlua-1.3.0-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/leafo/loadkit-1.1.0-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/gvvaughan/lpeg-1.1.0-2.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/openresty/lua-cjson-2.1.0.10-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/daurnimator/luaossl-20220711-0.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/lunarmodules/luasocket-3.1.0-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/leafo/pgmoon-1.16.0-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/leafo/magick-1.6.0-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/jprjr/luasodium-2.4.0-1.rockspec -RUN luarocks --lua-version=5.1 install https://luarocks.org/manifests/leafo/lapis-1.16.0-1.rockspec -# RUN luarocks --lua-version=5.1 build --only-deps +# if using openresty images, make sure the image version is >= 1.25.3.2-5 or >= 1.27.1.2-2 +# see https://github.com/openresty/docker-openresty/issues/276#issuecomment-2950726213 +# otherwise, make sure your image uses luarocks >= 3.12.0 +# see https://github.com/luarocks/luarocks/issues/1797 +RUN luarocks --lua-version=5.1 build --only-deps EXPOSE 8080 RUN chmod +x /app/start.sh ENTRYPOINT ["/app/start.sh", "production"]