Skip to content

Commit

Permalink
This works on new :latest but the layer is 249MB
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Jul 6, 2017
1 parent 0798943 commit bfacff2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
FROM debian:jessie
FROM debian:stable-20170620

WORKDIR /build

ENV BUILD_PACKAGES "build-essential git curl zlib1g-dev python"
ENV BUILD_PACKAGES "build-essential git curl ca-certificates zlib1g-dev python"
RUN apt-get update -y && \
apt-get install $BUILD_PACKAGES -y && \
apt-get install -y --no-install-recommends $BUILD_PACKAGES && \
git clone https://github.com/edenhill/kafkacat.git && \
cd kafkacat && \
./bootstrap.sh && \
make install && \
cd .. && rm -rf kafkacat && \
AUTO_ADDED_PACKAGES=`apt-mark showauto` && \
apt-get remove --purge -y $BUILD_PACKAGES $AUTO_ADDED_PACKAGES && \
apt-get remove --purge -y $BUILD_PACKAGES && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENTRYPOINT ["kafkacat"]

0 comments on commit bfacff2

Please sign in to comment.