From 381ba946d66fa2eef8b600632fc33a3ab9431f7b Mon Sep 17 00:00:00 2001 From: Niels Mokkenstorm Date: Tue, 4 Aug 2026 10:33:48 +0200 Subject: [PATCH] build: build the image on gleam 1.18 and run the shipment entrypoint through sh --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82c8abe..b1b831b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/gleam-lang/gleam:v1.17.0-erlang AS build +FROM ghcr.io/gleam-lang/gleam:v1.18.0-erlang AS build WORKDIR /build # Makes an amd64 build work on an arm64 host. BeamAsm dual-maps its JIT code @@ -45,4 +45,5 @@ USER app EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ CMD curl -fsS "http://localhost:${PORT:-8080}/healthz" || exit 1 -CMD ["./entrypoint.sh", "run"] +# gleam's generated entrypoint puts SPDX headers above the shebang, so exec-form CMD gets ENOEXEC. +CMD ["/bin/sh", "./entrypoint.sh", "run"] -- 2.51.2