mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
29 lines
494 B
Docker
29 lines
494 B
Docker
|
#
|
||
|
# Dockerfile for tinc-arm
|
||
|
#
|
||
|
|
||
|
FROM easypi/alpine-arm
|
||
|
MAINTAINER EasyPi Software Foundation
|
||
|
|
||
|
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
|
||
|
|
||
|
VOLUME /etc/tinc
|
||
|
|
||
|
ENV NETNAME=netname \
|
||
|
KEYSIZE=4096 \
|
||
|
VERBOSE=2
|
||
|
|
||
|
ENV IP_ADDR=1.2.3.4 \
|
||
|
ADDRESS=10.0.0.1 \
|
||
|
NETMASK=255.255.255.0 \
|
||
|
NETWORK=10.0.0.0/24 \
|
||
|
RUNMODE=server
|
||
|
|
||
|
EXPOSE 655/tcp 655/udp
|
||
|
|
||
|
ENTRYPOINT ["/entrypoint.sh"]
|