Update Dockerfile.tinc

This commit is contained in:
Manevolent 2023-04-13 10:25:07 -06:00 committed by GitHub
parent 4ea4fd1e80
commit a7c529d4d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,13 @@
FROM alpine:3.17 FROM alpine:3.17
MAINTAINER Team Lixo <lixonet@team.lixo> MAINTAINER Team Lixo <lixonet@team.lixo>
RUN apk add tinc iptables RUN apk add tinc iptables tcpdump
RUN sed -i '/^default = default_sect/a legacy = legacy_sect' /etc/ssl/openssl.cnf
RUN sed -i '/^\[default_sect\]/a activate = 1' /etc/ssl/openssl.cnf
RUN echo "[legacy_sect]" >> /etc/ssl/openssl.cnf
RUN echo "activate = 1" >> /etc/ssl/openssl.cnf
EXPOSE 9993/tcp 655/udp EXPOSE 655/tcp 655/udp
VOLUME /etc/tinc VOLUME /etc/tinc
CMD [ "sh", "-c", "/usr/sbin/tincd --net=$NETNAME --no-detach" ] CMD [ "sh", "-c", "/usr/sbin/tincd --net=$NETNAME --no-detach" ]