23 lines
885 B
Docker
Executable File
23 lines
885 B
Docker
Executable File
FROM node:24-bookworm-slim AS checks
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
patch lua5.1 zstd ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /repo
|
|
COPY static/launcher.js static/index.html ./static/
|
|
COPY menu ./menu
|
|
COPY tests ./tests
|
|
COPY patches ./patches
|
|
COPY build_fsroot.sh ./
|
|
COPY build_luanti.sh ./
|
|
RUN node --check static/launcher.js && node tests/launcher.cjs \
|
|
&& lua5.1 tests/menu.lua && bash -n build_fsroot.sh tests/fsroot.sh \
|
|
&& bash -n build_luanti.sh && bash tests/fsroot.sh \
|
|
&& bash tests/pwdfield-patch.sh
|
|
|
|
# Validate the real web-server configuration without compiling the WASM client.
|
|
FROM nginx:stable-alpine AS web-check
|
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
COPY static/index.html /usr/share/nginx/html/index.html
|
|
USER nginx
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|