1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-18 04:58:52 +02:00
dockerfiles/tinc/Dockerfile

29 lines
477 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
2017-05-08 07:05:07 +08:00
MAINTAINER kev <noreply@easypi.pro>
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 \
2016-07-13 11:41:21 +08:00
KEYSIZE=4096 \
2016-02-08 16:47:09 +08:00
VERBOSE=2
2015-06-14 16:34:04 +08:00
2016-07-13 11:41:21 +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 \
2016-07-13 11:41:21 +08:00
NETWORK=10.0.0.0/24 \
RUNMODE=server
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"]