1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/tinc/Dockerfile

29 lines
477 B
Docker
Raw Normal View History

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