From eb958a1f84d3afab880cf8cdc95bb1ca8d50a9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jegors=20=C4=8Cemisovs?= Date: Tue, 7 Jul 2026 23:54:12 +0300 Subject: [PATCH] fix: update Dockerfile for SBT 2 stage path SBT 2 changed the output path for sbt-native-packager's stage task from target/universal/stage to target/out/jvm///universal/stage. - Use cp -a to copy the stage directory from the new SBT 2 path to the expected location - Keep .dockerignore clean by ignoring target/ entirely Fixes GitHub Actions build failure due to missing stage directory after migrating from SBT 1 to SBT 2. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7f8bd3e..d13d5b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,9 @@ RUN --mount=type=secret,id=github_token \ COPY src/main/ src/main/ RUN --mount=type=secret,id=github_token \ - GITHUB_TOKEN=$(cat /run/secrets/github_token) sbt stage + GITHUB_TOKEN=$(cat /run/secrets/github_token) sbt stage && \ + mkdir -p /build/target/universal && \ + cp -a /build/target/out/jvm/*/*/universal/stage /build/target/universal/ # Runtime stage. The bot is an outbound client (no listening port), so no EXPOSE/healthcheck. FROM eclipse-temurin:25-jre-noble