forked from edenhill/kcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.Debian
28 lines (23 loc) · 869 Bytes
/
Dockerfile.Debian
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:stretch-slim
COPY . /usr/src/kafkacat
ENV BUILD_DEPS build-essential zlib1g-dev liblz4-dev libssl-dev libsasl2-dev python cmake libcurl4-openssl-dev pkg-config
ENV RUN_DEPS libssl1.1 libsasl2-2 ca-certificates curl
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $BUILD_DEPS $RUN_DEPS && \
echo "Building" && \
cd /usr/src/kafkacat && \
rm -rf tmp-bootstrap && \
echo "Source versions:" && \
grep ^github_download ./bootstrap.sh && \
./bootstrap.sh && \
mv kafkacat /usr/bin/ ; \
echo "Cleaning up" ; \
cd / ; \
rm -rf /usr/src/kafkacat; \
apt-get purge -y --auto-remove $BUILD_DEPS ; \
apt-get clean -y ; \
apt-get autoclean -y ; \
rm /var/log/dpkg.log /var/log/alternatives.log /var/log/apt/*.log; \
rm -rf /var/lib/apt/lists/*
RUN kafkacat -V
ENTRYPOINT ["kafkacat"]