-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Go SDK] Use distroless:debian12 (no-ssl) as base image. (#30011)
* [Go SDK] Use distroless:debian12 (no-ssl) as base image. * ws lint * Update changes * add space --------- Co-authored-by: lostluck <[email protected]>
- Loading branch information
Showing
2 changed files
with
2 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,30 +16,17 @@ | |
# limitations under the License. | ||
############################################################################### | ||
|
||
FROM debian:bookworm | ||
FROM gcr.io/distroless/base-nossl-debian12:latest | ||
LABEL Author "Apache Beam <[email protected]>" | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
|
||
ARG pull_licenses | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
ca-certificates \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ADD target/${TARGETOS}_${TARGETARCH}/boot /opt/apache/beam/ | ||
|
||
COPY target/LICENSE /opt/apache/beam/ | ||
COPY target/NOTICE /opt/apache/beam/ | ||
|
||
# Add Go licenses. | ||
COPY target/go-licenses/* /opt/apache/beam/third_party_licenses/golang/ | ||
RUN if [ "$pull_licenses" = "false" ] ; then \ | ||
# Remove above golang license and dir if pull licenses false | ||
rm -rf /opt/apache/beam/third_party_licenses ; \ | ||
fi | ||
|
||
ENTRYPOINT ["/opt/apache/beam/boot"] |