1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:36 +02:00
dockerfiles/tinc/Dockerfile

28 lines
441 B
Docker
Raw Normal View History

2015-06-14 11:06:12 +08:00
#
# Dockerfile for tinc
#
2015-06-22 21:12:35 +08:00
FROM alpine
2016-05-01 09:06:20 +08:00
MAINTAINER kev <noreply@easypi.info>
2015-06-14 11:06:12 +08:00
2016-07-01 02:41:31 +08:00
RUN apk add --no-cache iptables tinc
COPY init.sh /init.sh
COPY docker-entrypoint.sh /entrypoint.sh
COPY peer.sh /usr/local/bin/peer.sh
2016-07-01 02:41:31 +08:00
VOLUME /etc/tinc
2016-02-08 16:47:09 +08:00
ENV NETNAME=netname \
KEYSIZE=4096 \
VERBOSE=2
2015-06-14 16:34:04 +08:00
2016-07-01 02:41:31 +08:00
ENV IP_ADDR=1.2.3.4 \
ADDRESS=10.0.0.1 \
2016-02-08 16:47:09 +08:00
NETMASK=255.255.255.0 \
NETWORK=10.0.0.0/24
2015-06-14 11:06:12 +08:00
2015-06-14 16:34:04 +08:00
EXPOSE 655/tcp 655/udp
2015-06-14 15:15:04 +08:00
2016-07-01 02:41:31 +08:00
ENTRYPOINT ["/entrypoint.sh"]