2021-10-23 22:44:20 +02:00
|
|
|
FROM docker:dind-rootless
|
|
|
|
|
|
|
|
|
|
ENV FACTORIO_SERVER_CONTAINER_NAME="factorio-server"
|
2021-10-23 23:21:31 +02:00
|
|
|
ENV KAFKA_HOST="kafka"
|
2021-10-23 22:44:20 +02:00
|
|
|
|
2021-10-23 23:51:43 +02:00
|
|
|
# root is required for installing dependencies and
|
|
|
|
|
# using the docker socket (listening to logs)
|
2021-10-23 22:44:20 +02:00
|
|
|
USER root
|
|
|
|
|
RUN apk add --update \
|
|
|
|
|
curl \
|
|
|
|
|
kafkacat
|
2021-10-23 23:51:43 +02:00
|
|
|
#USER rootless
|
2021-10-23 22:44:20 +02:00
|
|
|
|
|
|
|
|
COPY kafka-pipe.sh kafka-pipe.sh
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/sh", "/kafka-pipe.sh" ]
|