This is an automated email from the ASF dual-hosted git repository.

Amar3tto pushed a commit to branch fix-scio
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 0e787fd66d2e59ef1b3f7010e40249fe3959e832
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Fri Jul 10 18:23:00 2026 +0400

    Install sbt
---
 playground/backend/containers/scio/Dockerfile | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/playground/backend/containers/scio/Dockerfile 
b/playground/backend/containers/scio/Dockerfile
index 3d448b45906..94360982f0b 100644
--- a/playground/backend/containers/scio/Dockerfile
+++ b/playground/backend/containers/scio/Dockerfile
@@ -53,10 +53,20 @@ COPY --from=build 
/go/src/playground/backend/internal/fs_tool/ExampleData.scala
 RUN chmod +x /opt/playground/backend/new_scio_project.sh
 
 # Install sbt
-RUN echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee 
/etc/apt/sources.list.d/sbt.list &&\
-echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee 
/etc/apt/sources.list.d/sbt_old.list &&\
-curl -sL 
"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823";
 | apt-key add
-RUN apt-get update && apt-get install -y sbt
+RUN apt-get update \
+    && apt-get install -y --no-install-recommends \
+        ca-certificates \
+        curl \
+        gnupg \
+    && mkdir -p /etc/apt/keyrings \
+    && curl -fsSL \
+        
"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823";
 \
+      | gpg --dearmor -o /etc/apt/keyrings/scalasbt.gpg \
+    && echo "deb [signed-by=/etc/apt/keyrings/scalasbt.gpg] 
https://repo.scala-sbt.org/scalasbt/debian all main" \
+      > /etc/apt/sources.list.d/sbt.list \
+    && apt-get update \
+    && apt-get install -y --no-install-recommends sbt \
+    && rm -rf /var/lib/apt/lists/*
 
 COPY src/properties.yaml /opt/playground/backend/properties.yaml
 COPY entrypoint.sh /

Reply via email to