diff --git a/sdks/java/expansion-service/container/Dockerfile b/sdks/java/expansion-service/container/Dockerfile index 1b83ec68b994..26ff5d0317bb 100644 --- a/sdks/java/expansion-service/container/Dockerfile +++ b/sdks/java/expansion-service/container/Dockerfile @@ -16,7 +16,7 @@ # limitations under the License. ############################################################################### -FROM eclipse-temurin:11 +FROM gcr.io/distroless/java:11 LABEL Author "Apache Beam " ARG TARGETOS ARG TARGETARCH @@ -39,7 +39,8 @@ COPY target/launcher/${TARGETOS}_${TARGETARCH}/boot /opt/apache/beam/ # Copy the config file COPY target/expansion_service_config.yml ./ -# Add golang licenses. +# Add golang licenses. These commands require having a shell to work with +COPY --from=busybox:1.35.0-uclibc /bin/sh /bin/sh COPY target/go-licenses/* /opt/apache/beam/third_party_licenses/golang/ RUN if [ "${pull_licenses}" = "false" ] ; then \ # Remove above license dir if pull licenses false