KAFKA-17834: Improvements to Dockerfile (#17554)

Reviewers: Mickael Maison <mickael.maison@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Ken Huang 2025-09-22 23:04:42 +08:00 committed by GitHub
parent a0640f9517
commit da6a562f6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ LABEL org.label-schema.name="kafka" \
org.label-schema.description="Apache Kafka" \
org.label-schema.build-date="${build_date}" \
org.label-schema.vcs-url="https://github.com/apache/kafka" \
maintainer="Apache Kafka"
org.opencontainers.image.authors="Apache Kafka"
RUN mkdir opt/kafka; \
set -eux ; \

View File

@ -55,7 +55,7 @@ LABEL org.label-schema.name="kafka" \
org.label-schema.description="Apache Kafka" \
org.label-schema.build-date="${build_date}" \
org.label-schema.vcs-url="https://github.com/apache/kafka" \
maintainer="Apache Kafka"
org.opencontainers.image.authors="Apache Kafka"
RUN apk update ; \
apk add --no-cache gcompat ; \

View File

@ -44,14 +44,14 @@ RUN if [ "$KAFKA_MODE" = "native" ]; then \
FROM $jdk_version
MAINTAINER Apache Kafka dev@kafka.apache.org
LABEL org.opencontainers.image.authors="Apache Kafka dev@kafka.apache.org"
VOLUME ["/opt/kafka-dev"]
# Set the timezone.
ENV TZ="/usr/share/zoneinfo/America/Los_Angeles"
# Do not ask for confirmations when running apt-get, etc.
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
# Set the ducker.creator label so that we know that this is a ducker image. This will make it
# visible to 'ducker purge'. The ducker.creator label also lets us know what UNIX user built this
@ -155,4 +155,4 @@ RUN useradd -u $UID -ms /bin/bash ducker \
USER ducker
CMD sudo service ssh start && tail -f /dev/null
CMD ["sudo", "service", "ssh", "start", "-D"]