# syntax=docker/dockerfile:1
# The lab's secure broker (module 8): one Kafka node with TLS, SCRAM logins and the standard
# authorizer, configured by server.properties in this folder.
FROM apache/kafka:4.3.1
USER root
RUN mkdir -p /opt/lab /etc/kafka/secrets /var/lib/kafka/data && chown appuser:appuser /etc/kafka/secrets /var/lib/kafka/data
COPY --chmod=0644 server.properties /opt/lab/server.properties
COPY --chmod=0755 start-secure.sh /opt/lab/start-secure.sh
USER appuser
CMD ["/opt/lab/start-secure.sh"]
