Skip to content

Commit

Permalink
Update Java expansion service to use distroless (#33464)
Browse files Browse the repository at this point in the history
* Update Java expansion service to use distroless

* Copy in sh
  • Loading branch information
damccorm authored Dec 30, 2024
1 parent 23524a7 commit 669076a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdks/java/expansion-service/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# limitations under the License.
###############################################################################

FROM eclipse-temurin:11
FROM gcr.io/distroless/java:11
LABEL Author "Apache Beam <[email protected]>"
ARG TARGETOS
ARG TARGETARCH
Expand All @@ -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
Expand Down

0 comments on commit 669076a

Please sign in to comment.