Use `apk --no-cache' on alpine images (#144)

This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
This commit is contained in:
Marc Cornellà 2016-06-06 05:40:20 +02:00 committed by Jess Frazelle
parent 5a6ef53d6a
commit 7ac4881609
32 changed files with 69 additions and 109 deletions

View File

@ -7,11 +7,10 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
apache2-ssl \ apache2-ssl \
apache2-utils \ apache2-utils \
ca-certificates \ ca-certificates \
htop \ htop
&& rm -rf /var/cache/apk/*
ENTRYPOINT [ "ab" ] ENTRYPOINT [ "ab" ]

View File

@ -18,8 +18,7 @@ RUN builddeps=' \
libffi-dev \ libffi-dev \
gcc \ gcc \
' \ ' \
&& apk update \ && apk --no-cache add \
&& apk add \
ca-certificates \ ca-certificates \
python \ python \
py-paramiko \ py-paramiko \
@ -27,7 +26,6 @@ RUN builddeps=' \
py-jinja2 \ py-jinja2 \
py-httplib2 \ py-httplib2 \
$builddeps \ $builddeps \
&& rm -rf /var/cache/apk/* \
&& pip install --upgrade pip \ && pip install --upgrade pip \
&& pip install \ && pip install \
ansible \ ansible \

View File

@ -1,13 +1,12 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
groff \ groff \
less \ less \
python \ python \
py-pip \ py-pip \
&& rm -rf /var/cache/apk/* \
&& pip install awscli \ && pip install awscli \
&& mkdir -p /root/.aws \ && mkdir -p /root/.aws \
&& { \ && { \

View File

@ -1,13 +1,12 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
git \ git \
python \ python \
py-boto \ py-boto \
py-paramiko \ py-paramiko
&& rm -rf /var/cache/apk/*
RUN git clone https://github.com/newsapps/beeswithmachineguns /usr/src/beeswithmachineguns \ RUN git clone https://github.com/newsapps/beeswithmachineguns /usr/src/beeswithmachineguns \
&& cd /usr/src/beeswithmachineguns \ && cd /usr/src/beeswithmachineguns \

View File

@ -9,15 +9,14 @@
# And it also requires the USER and DISPLAY environment variables to be set. # And it also requires the USER and DISPLAY environment variables to be set.
# #
FROM alpine FROM alpine
RUN apk --update add \ RUN apk --no-cache add \
i3lock \ i3lock \
imagemagick \ imagemagick \
py-dbus \ py-dbus \
py-gobject \ py-gobject \
scrot \ scrot \
ttf-liberation \ ttf-liberation \
xkeyboard-config \ xkeyboard-config
&& rm -rf /var/cache/apk/*
COPY buttslock.py buttslock.sh lock.png / COPY buttslock.py buttslock.sh lock.png /

View File

@ -4,9 +4,8 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go ENV GOPATH /go
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates
&& rm -rf /var/cache/apk/*
RUN buildDeps=' \ RUN buildDeps=' \
go \ go \
@ -16,8 +15,7 @@ RUN buildDeps=' \
libgcc \ libgcc \
' \ ' \
set -x \ set -x \
&& apk update \ && apk --no-cache add $buildDeps \
&& apk add $buildDeps \
&& mkdir -p /go/src/camlistore.googlesource.com \ && mkdir -p /go/src/camlistore.googlesource.com \
&& cd /go/src/camlistore.googlesource.com \ && cd /go/src/camlistore.googlesource.com \
&& git clone --depth 1 -b 0.9 https://camlistore.googlesource.com/camlistore.git \ && git clone --depth 1 -b 0.9 https://camlistore.googlesource.com/camlistore.git \
@ -25,7 +23,6 @@ RUN buildDeps=' \
&& go run make.go \ && go run make.go \
&& cp -r ./bin/* /usr/local/bin/ \ && cp -r ./bin/* /usr/local/bin/ \
&& apk del $buildDeps \ && apk del $buildDeps \
&& rm -rf /var/cache/apk/* \
&& rm -rf /go \ && rm -rf /go \
&& echo "Build complete." && echo "Build complete."

View File

@ -1,10 +1,9 @@
FROM alpine:latest FROM alpine:latest
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
python \ python \
py-pip \ py-pip \
&& rm -rf /var/cache/apk/* \
&& pip install cli53 && pip install cli53
ENTRYPOINT [ "cli53" ] ENTRYPOINT [ "cli53" ]

View File

@ -6,10 +6,9 @@ ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go ENV GOPATH /go
#ENV GO15VENDOREXPERIMENT 1 #ENV GO15VENDOREXPERIMENT 1
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
curl \ curl
&& rm -rf /var/cache/apk/*
ENV CONSUL_VERSION v0.6.4 ENV CONSUL_VERSION v0.6.4
@ -28,8 +27,7 @@ RUN buildDeps=' \
zip \ zip \
' \ ' \
set -x \ set -x \
&& apk update \ && apk --no-cache add $buildDeps \
&& apk add $buildDeps \
&& go get github.com/Soulou/curl-unix-socket \ && go get github.com/Soulou/curl-unix-socket \
&& mv /go/bin/curl-unix-socket /usr/bin/ \ && mv /go/bin/curl-unix-socket /usr/bin/ \
&& mkdir -p /go/src/github.com/hashicorp /etc/consul.d \ && mkdir -p /go/src/github.com/hashicorp /etc/consul.d \
@ -46,7 +44,6 @@ RUN buildDeps=' \
&& mv static /usr/src/consul/ \ && mv static /usr/src/consul/ \
&& mv javascripts /usr/src/consul/ \ && mv javascripts /usr/src/consul/ \
&& apk del $buildDeps \ && apk del $buildDeps \
&& rm -rf /var/cache/apk/* \
&& rm -rf /go \ && rm -rf /go \
&& echo "Build complete." && echo "Build complete."

View File

@ -6,8 +6,7 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
curl \ curl
&& rm -rf /var/cache/apk/*
CMD [ "curl" ] CMD [ "curl" ]

View File

@ -1,11 +1,10 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
python \ python \
py-pip \ py-pip \
&& rm -rf /var/cache/apk/* \
&& pip install dcoscli && pip install dcoscli
# path to the DCOS CLI binary # path to the DCOS CLI binary

View File

@ -20,11 +20,10 @@ FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
# Install emacs: # Install emacs:
# Note: Eamcs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64 # Note: Emacs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
RUN apk update && apk add \ RUN apk --no-cache add \
emacs \ --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ emacs
&& rm -rf /var/cache/apk/*
# Autorun doctor # Autorun doctor
CMD ["/usr/bin/emacs", "-f", "doctor"] CMD ["/usr/bin/emacs", "-f", "doctor"]

View File

@ -20,11 +20,10 @@ FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
# Install emacs: # Install emacs:
# Note: Eamcs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64 # Note: Emacs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
RUN apk update && apk add \ RUN apk --no-cache add \
emacs \ --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ emacs
&& rm -rf /var/cache/apk/*
# Autorun dunnet # Autorun dunnet
CMD ["/usr/bin/emacs", "-batch", "-l", "dunnet"] CMD ["/usr/bin/emacs", "-batch", "-l", "dunnet"]

View File

@ -3,12 +3,11 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
ENV HOME /home/gcalcli ENV HOME /home/gcalcli
RUN apk update && apk add \ RUN apk --no-cache add \
python \ python \
python-dev \ python-dev \
py-pip \ py-pip \
build-base \ build-base \
&& rm -rf /var/cache/apk/* \
&& adduser -S gcalcli \ && adduser -S gcalcli \
&& chown -R gcalcli $HOME \ && chown -R gcalcli $HOME \
&& pip install vobject parsedatetime gcalcli && pip install vobject parsedatetime gcalcli

View File

@ -11,8 +11,8 @@ RUN buildDeps=' \
zip \ zip \
' \ ' \
set -x \ set -x \
&& apk --update add $buildDeps \ && apk --no-cache add $buildDeps \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \ --repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
&& git clone --depth 1 https://github.com/facebook/buck.git /buck \ && git clone --depth 1 https://github.com/facebook/buck.git /buck \
&& ( \ && ( \
cd /buck \ cd /buck \
@ -27,8 +27,7 @@ RUN buildDeps=' \
&& buck build gitiles-dev:dev \ && buck build gitiles-dev:dev \
) \ ) \
&& apk del $buildDeps \ && apk del $buildDeps \
&& rm -rf /buck \ && rm -rf /buck
&& rm -rf /var/cache/apk/*
COPY start.sh /start.sh COPY start.sh /start.sh

View File

@ -10,10 +10,9 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
ENV HOME /root ENV HOME /root
RUN apk update && apk add \ RUN apk --no-cache add \
git \ git \
openssh \ openssh \
&& rm -rf /var/cache/apk/* \
&& sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config \ && sed -i "s/#PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config \
&& sed -i "s/#PubkeyAuthentication yes/PubkeyAuthentication yes/" /etc/ssh/sshd_config \ && sed -i "s/#PubkeyAuthentication yes/PubkeyAuthentication yes/" /etc/ssh/sshd_config \
&& echo -e "AllowUsers git\n" >> /etc/ssh/sshd_config \ && echo -e "AllowUsers git\n" >> /etc/ssh/sshd_config \

View File

@ -1,11 +1,10 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
python \ python \
py-pip \ py-pip \
&& rm -rf /var/cache/apk/* \
&& pip install httpie httpie-unixsocket && pip install httpie httpie-unixsocket
ENTRYPOINT [ "http" ] ENTRYPOINT [ "http" ]

View File

@ -1,8 +1,7 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
imagemagick \ imagemagick
&& rm -rf /var/cache/apk/*
CMD [ "echo", "Use one of the following commands [ animate | compare | composite | conjure | convert | display | identify | import | mogrify | montage | stream ]" ] CMD [ "echo", "Use one of the following commands [ animate | compare | composite | conjure | convert | display | identify | import | mogrify | montage | stream ]" ]

View File

@ -9,7 +9,7 @@
FROM alpine FROM alpine
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
autoconf \ autoconf \
automake \ automake \
build-base \ build-base \
@ -17,7 +17,6 @@ RUN apk update && apk add \
libpng-dev \ libpng-dev \
nasm \ nasm \
nodejs \ nodejs \
&& rm -rf /var/cache/apk/* \
&& npm install --global imagemin-cli && npm install --global imagemin-cli
CMD [ "imagemin", "--help" ] CMD [ "imagemin", "--help" ]

View File

@ -1,8 +1,7 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
libvirt-client \ libvirt-client
&& rm -rf /var/cache/apk/*
ENTRYPOINT [ "virsh", "-c", "qemu:///system" ] ENTRYPOINT [ "virsh", "-c", "qemu:///system" ]

View File

@ -14,7 +14,7 @@ MAINTAINER Jessica Frazelle <jess@docker.com>
RUN addgroup -g 1000 user \ RUN addgroup -g 1000 user \
&& adduser -D -h /home/user -G user -u 1000 user && adduser -D -h /home/user -G user -u 1000 user
RUN apk --update add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
elinks \ elinks \
git \ git \
@ -22,8 +22,7 @@ RUN apk --update add \
lynx \ lynx \
mutt \ mutt \
mutt-doc \ mutt-doc \
vim \ vim
&& rm -rf /var/cache/apk/*
# a browser is necessary! # a browser is necessary!
ENV BROWSER lynx ENV BROWSER lynx

View File

@ -1,7 +1,6 @@
FROM alpine:latest FROM alpine:latest
RUN apk update && apk add \ RUN apk --no-cache add \
openvpn \ openvpn
&& rm -rf /var/cache/apk/*
WORKDIR /etc/openvpn WORKDIR /etc/openvpn
ENTRYPOINT ["openvpn"] ENTRYPOINT ["openvpn"]

View File

@ -11,9 +11,8 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
privoxy \ privoxy
&& rm -rf /var/cache/apk/*
# expose http port # expose http port
EXPOSE 8118 EXPOSE 8118

View File

@ -10,7 +10,7 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
build-base \ build-base \
ca-certificates \ ca-certificates \
freetype \ freetype \
@ -20,7 +20,6 @@ RUN apk update && apk add \
python-dev \ python-dev \
py-pip \ py-pip \
zlib-dev \ zlib-dev \
&& rm -rf /var/cache/apk/* \
&& pip install pillow==2.8.0 rainbowstream && pip install pillow==2.8.0 rainbowstream
ENTRYPOINT [ "rainbowstream" ] ENTRYPOINT [ "rainbowstream" ]

View File

@ -9,9 +9,8 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
shorewall \ shorewall \
&& rm -rf /var/cache/apk/* \
&& touch /var/log/messages && touch /var/log/messages
COPY ./etc /etc/shorewall COPY ./etc /etc/shorewall

View File

@ -1,12 +1,11 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
build-base \ build-base \
ca-certificates \ ca-certificates \
ruby \ ruby \
ruby-dev \ ruby-dev \
&& rm -rf /var/cache/apk/* \
&& gem install --no-document io-console t && gem install --no-document io-console t
ENTRYPOINT [ "t" ] ENTRYPOINT [ "t" ]

View File

@ -20,11 +20,10 @@ FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
# Install emacs: # Install emacs:
# Note: Eamcs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64 # Note: Emacs is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
RUN apk update && apk add \ RUN apk --no-cache add \
emacs \ --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ emacs
&& rm -rf /var/cache/apk/*
# Autorun tetris # Autorun tetris
CMD ["/usr/bin/emacs", "-f", "tetris"] CMD ["/usr/bin/emacs", "-f", "tetris"]

View File

@ -11,10 +11,9 @@ FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
# Note: Tor is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64 # Note: Tor is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
RUN apk update && apk add \ RUN apk --no-cache add \
tor \ --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ tor
&& rm -rf /var/cache/apk/*
# expose socks port # expose socks port
EXPOSE 9050 EXPOSE 9050

View File

@ -20,10 +20,9 @@ FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
# Note: Tor is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64 # Note: Tor is only in testing repo -> http://pkgs.alpinelinux.org/packages?package=emacs&repo=all&arch=x86_64
RUN apk update && apk add \ RUN apk --no-cache add \
tor \ --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ tor
&& rm -rf /var/cache/apk/*
# default port to used for incoming Tor connections # default port to used for incoming Tor connections
# can be changed by changing 'ORPort' in torrc # can be changed by changing 'ORPort' in torrc

View File

@ -22,9 +22,8 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
transmission-daemon \ transmission-daemon \
&& rm -rf /var/cache/apk/* \
&& mkdir -p /transmission/{download,watch,incomplete,config} \ && mkdir -p /transmission/{download,watch,incomplete,config} \
&& chmod 1777 /transmission && chmod 1777 /transmission

View File

@ -5,10 +5,9 @@ MAINTAINER Jessica Frazelle <jess@mesosphere.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go ENV GOPATH /go
RUN apk update && apk add \ RUN apk --no-cache add \
ca-certificates \ ca-certificates \
curl \ curl
&& rm -rf /var/cache/apk/*
ENV VAULT_VERSION v0.5.3 ENV VAULT_VERSION v0.5.3
@ -24,8 +23,7 @@ RUN buildDeps=' \
zip \ zip \
' \ ' \
set -x \ set -x \
&& apk update \ && apk --no-cache add $buildDeps \
&& apk add $buildDeps \
&& mkdir -p /go/src/github.com/hashicorp \ && mkdir -p /go/src/github.com/hashicorp \
&& git clone --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \ && git clone --branch ${VAULT_VERSION} https://github.com/hashicorp/vault /go/src/github.com/hashicorp/vault \
&& cd /go/src/github.com/hashicorp/vault \ && cd /go/src/github.com/hashicorp/vault \
@ -33,7 +31,6 @@ RUN buildDeps=' \
&& XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \ && XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" make bin \
&& mv bin/vault /usr/bin/ \ && mv bin/vault /usr/bin/ \
&& apk del $buildDeps \ && apk del $buildDeps \
&& rm -rf /var/cache/apk/* \
&& rm -rf /go \ && rm -rf /go \
&& echo "Build complete." && echo "Build complete."

View File

@ -1,9 +1,8 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk update && apk add \ RUN apk --no-cache add \
ncurses \ ncurses
&& rm -rf /var/cache/apk/*
RUN set -x \ RUN set -x \
&& apk add --no-cache --virtual .build-deps \ && apk add --no-cache --virtual .build-deps \

View File

@ -4,21 +4,19 @@ ENV ZOOKEEPER_VERSION 3.4.8
ENV PATH $PATH:/opt/zookeeper/bin/ ENV PATH $PATH:/opt/zookeeper/bin/
# the start files for zookeeper use bash # the start files for zookeeper use bash
RUN apk --update add \ RUN apk --no-cache add \
bash \ bash
&& rm -rf /var/cache/apk/*
RUN buildDeps=' \ RUN buildDeps=' \
curl \ curl \
' \ ' \
&& echo "==> Installing dependencies..." \ && echo "==> Installing dependencies..." \
&& apk --update add --virtual build-deps $buildDeps \ && apk --no-cache add --virtual build-deps $buildDeps \
&& echo "==> Downloading Zookeeper..." \ && echo "==> Downloading Zookeeper..." \
&& mkdir -p /opt \ && mkdir -p /opt \
&& curl -sSL http://apache.mirrors.pair.com/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz | tar -xzf - -C /opt \ && curl -sSL http://apache.mirrors.pair.com/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/zookeeper-${ZOOKEEPER_VERSION}.tar.gz | tar -xzf - -C /opt \
&& mv /opt/zookeeper-${ZOOKEEPER_VERSION} /opt/zookeeper \ && mv /opt/zookeeper-${ZOOKEEPER_VERSION} /opt/zookeeper \
&& cp /opt/zookeeper/conf/zoo_sample.cfg /opt/zookeeper/conf/zoo.cfg \ && cp /opt/zookeeper/conf/zoo_sample.cfg /opt/zookeeper/conf/zoo.cfg \
&& apk del build-deps \ && apk del build-deps
&& rm -rf /var/cache/apk/*
ENTRYPOINT ["zkServer.sh", "start-foreground"] ENTRYPOINT ["zkServer.sh", "start-foreground"]