chore(client): update Dockerfile and dependency versions

Update Dockerfile for client build process, including changes to base image and dependencies. Add support for OPENGL_BASE_IMAGE environment variable to facilitate easier image customization and maintenance.
This commit is contained in:
Yves-Marie Haussonne 2024-09-30 19:52:02 +02:00
parent d0423c6c6b
commit 796aada661

View File

@ -1,8 +1,10 @@
ARG OPENGL_BASE_IMAGE="registry.apps.education.fr/iri/minetest/docker-test-harness/opengl:latest"
FROM alpine:latest AS compile
ARG MINETEST_VERSION=5.9.1
ARG MINETEST_GAME_VERSION=5.8.0
ARG LUAJIT_VERSION=v2.1
RUN apk add --no-cache git build-base cmake curl-dev zlib-dev zstd-dev \
sqlite-dev postgresql-dev hiredis-dev leveldb-dev jpeg-dev libpng-dev \
glfw-dev gmp-dev jsoncpp-dev libxi-dev libintl ninja ca-certificates \
@ -39,7 +41,6 @@ RUN cmake -B build \
cmake --build build && \
cmake --install build
ARG OPENGL_BASE_IMAGE
FROM ${OPENGL_BASE_IMAGE}
COPY --from=compile /usr/local/share/minetest /usr/local/share/minetest