1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00
dockerfiles/tinc/Dockerfile

29 lines
477 B
Docker
Raw Normal View History

2015-06-14 03:06:12 +00:00
#
# Dockerfile for tinc
#
2015-06-22 13:12:35 +00:00
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2015-06-14 03:06:12 +00:00
2016-06-30 18:41:31 +00: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-06-30 18:41:31 +00:00
VOLUME /etc/tinc
2016-02-08 08:47:09 +00:00
ENV NETNAME=netname \
2016-07-13 03:41:21 +00:00
KEYSIZE=4096 \
2016-02-08 08:47:09 +00:00
VERBOSE=2
2015-06-14 08:34:04 +00:00
2016-07-13 03:41:21 +00:00
ENV IP_ADDR=1.2.3.4 \
2019-06-06 00:36:40 +00:00
ADDRESS=10.20.30.1 \
2016-02-08 08:47:09 +00:00
NETMASK=255.255.255.0 \
2019-06-06 00:36:40 +00:00
NETWORK=10.20.30.0/24 \
2016-07-13 03:41:21 +00:00
RUNMODE=server
2015-06-14 03:06:12 +00:00
2015-06-14 08:34:04 +00:00
EXPOSE 655/tcp 655/udp
2015-06-14 07:15:04 +00:00
2016-06-30 18:41:31 +00:00
ENTRYPOINT ["/entrypoint.sh"]