Use this form of apk, since the shortcut masks errors

`apk-install` is a script that runs apk then tidies up. The problem is
that it doesn't exit with an error if the install fails, which means
that if some packages are unavailable at the time of building, it will
still all go ahead.
This commit is contained in:
Michael Bridgen committed 2015-03-18 12:29:19 +00:00
1 parent 8d12810446
commit 0c8d9e8c03
1 file changed
+2 -1
+2 -1
View File
@@ -1,6 +1,7 @@
FROM gliderlabs/alpine
MAINTAINER Weaveworks Inc <help@weave.works>
WORKDIR /home/weave
RUN ["apk-install", "ethtool", "conntrack-tools", "curl", "iptables", "iproute2", "docker"]
RUN ["apk", "add", "--update", "ethtool", "conntrack-tools", "curl", "iptables", "iproute2", "docker"]
RUN ["sh", "-c", "rm -rf /var/cache/apk/*"]
ADD ./weave /home/weave/
ENTRYPOINT ["/home/weave/weave"]