Skip to content

Commit

Permalink
Add LANG environment and /usr/lib/locale
Browse files Browse the repository at this point in the history
  • Loading branch information
damondouglas committed Nov 20, 2024
1 parent 45aaec5 commit 86b391a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdks/java/container/Dockerfile-distroless
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ ARG BEAM_BASE
ARG DISTROLESS_BASE
FROM ${BEAM_BASE} AS base
ARG TARGETARCH
ENV LANG C.UTF-8

LABEL Author="Apache Beam <[email protected]>"

RUN if [ -z "${TARGETARCH}" ]; then echo "fatal: TARGETARCH not set; run as docker buildx build or use --build-arg=TARGETARCH=amd64|arm64" >&2; exit 1; fi
Expand All @@ -33,4 +35,8 @@ FROM ${DISTROLESS_BASE}:latest-${TARGETARCH} AS distroless

COPY --from=base /opt /opt

# Along with the LANG environment variable above, prevents internally discovered failing bugs related to Dataflow Flex
# template character encodings.
COPY --from=base /usr/lib/locale /usr/lib/locale

ENTRYPOINT ["/opt/apache/beam/boot"]

0 comments on commit 86b391a

Please sign in to comment.