| # debian.sh --arch 'amd64' out/ 'trixie' '@1793827419' |
| ARG GODOT_VERSION |
| ARG GODOT_STATUS |
| ARG SHARUN_VERSION="v0.8.1" |
| ARG SHARUN_SHA256="18d970f56eca2c527ffd3993b161b6bc340055129db14b394a77cb67d8bbfff9" |
| RUN sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources |
| ARG DEBIAN_FRONTEND=noninteractive |
| RUN apt-get update && apt-get install -y --no-install-recommends bash python3 ca-certificates curl git file zip unzip zstd fontconfig libfontconfig1 binutils libc-bin patchelf findutils grep sed coreutils locales strace libvulkan1 scons build-essential mingw-w64 mesa-vulkan-drivers libgl1-mesa-dri libglx-mesa0 libegl-mesa0 && rm -rf /var/lib/apt/lists/* |
| COPY --from=fetcher /out/ / |
| RUN curl --fail --location --proto '=https' --proto-redir '=https' "https://github.com/VHSgunzo/sharun/releases/download/${SHARUN_VERSION}/sharun-x86_64" -o /usr/local/bin/sharun && echo "${SHARUN_SHA256} /usr/local/bin/sharun" | sha256sum --check --strict - && chmod 0755 /usr/local/bin/sharun |
| ARG JUST_VERSION=1.56.0 |
| RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --tag "${JUST_VERSION}" --to /usr/local/bin |
| RUN command -v just && just --version |
| ENV XDG_DATA_HOME=/opt/godot-data XDG_CONFIG_HOME=/tmp/godot-config XDG_CACHE_HOME=/tmp/godot-cache LANG=C.UTF-8 |
| LABEL org.opencontainers.image.title="Godot CI" |
| LABEL org.opencontainers.image.version="${GODOT_VERSION}" |
| LABEL org.opencontainers.image.source="https://git.renan.world/renan/ci-images" |
| WORKDIR /workspace |
| RUN test "${XDG_DATA_HOME}" = "/opt/godot-data" && test "${XDG_CONFIG_HOME}" = "/tmp/godot-config" && test "${XDG_CACHE_HOME}" = "/tmp/godot-cache" && TEMPLATE_DIR="${XDG_DATA_HOME}/godot/export_templates/${GODOT_VERSION}.${GODOT_STATUS}" && test -f "${TEMPLATE_DIR}/version.txt" && test -x "${TEMPLATE_DIR}/linux_release.x86_64" && test -x "${TEMPLATE_DIR}/linux_debug.x86_64" && test -f "${TEMPLATE_DIR}/windows_release_x86_64.exe" && test -f "${TEMPLATE_DIR}/windows_release_x86_64_console.exe" && test -f "${TEMPLATE_DIR}/windows_debug_x86_64.exe" && test -f "${TEMPLATE_DIR}/windows_debug_x86_64_console.exe" && godot --headless --version |