Skip to content

Commit fff7671

Browse files
committed
Merge pull request spotify#19 from akomic/master
Updates Dockerfile to optimize image size
2 parents c5d4e35 + 41efc30 commit fff7671

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

kafka/Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@ ENV KAFKA_HOME /opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"
1111
RUN apt-get update && \
1212
apt-get install -y zookeeper wget supervisor dnsutils && \
1313
rm -rf /var/lib/apt/lists/* && \
14-
apt-get clean
15-
16-
RUN wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
14+
apt-get clean && \
15+
wget -q http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
1716
tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt && \
1817
rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz
1918

2019
ADD scripts/start-kafka.sh /usr/bin/start-kafka.sh
2120

2221
# Supervisor config
23-
ADD supervisor/kafka.conf /etc/supervisor/conf.d/kafka.conf
24-
ADD supervisor/zookeeper.conf /etc/supervisor/conf.d/zookeeper.conf
22+
ADD supervisor/kafka.conf supervisor/zookeeper.conf /etc/supervisor/conf.d/
2523

2624
# 2181 is zookeeper, 9092 is kafka
2725
EXPOSE 2181 9092

0 commit comments

Comments
 (0)