24 lines
968 B
Docker
24 lines
968 B
Docker
FROM ALPINE_BASEIMAGE
|
|
|
|
# If we're building for another architecture than amd64, the CROSS_BUILD_ placeholder is removed so e.g. CROSS_BUILD_COPY turns into COPY
|
|
# If we're building normally, for amd64, CROSS_BUILD lines are removed
|
|
CROSS_BUILD_COPY qemu-QEMUARCH-static /usr/bin/
|
|
|
|
LABEL maintainer "Weaveworks Inc <help@weave.works>"
|
|
LABEL works.weave.role=system \
|
|
org.label-schema.name="Weave Net" \
|
|
org.label-schema.description="Weave Net creates a virtual network that connects Docker containers across multiple hosts and enables their automatic discovery" \
|
|
org.label-schema.url="https://weave.works" \
|
|
org.label-schema.vcs-url="https://github.com/weaveworks/weave" \
|
|
org.label-schema.vendor="Weaveworks"
|
|
|
|
RUN apk add --update \
|
|
iptables \
|
|
ipset \
|
|
ulogd \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& mknod /var/log/ulogd.pcap p
|
|
COPY ./weave-npc /usr/bin/weave-npc
|
|
COPY ./ulogd.conf /etc/ulogd.conf
|
|
ENTRYPOINT ["/usr/bin/weave-npc"]
|