added initial tinc config

This commit is contained in:
jkoschke
2022-01-12 23:20:46 +01:00
parent c98b394b0d
commit 23a4dd23e0
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,25 @@
ARG BUILD_FROM
FROM $BUILD_FROM
RUN sudo apt-get update
RUN sudo apt-get install tinc
EXPOSE 655/tcp 655/udp
VOLUME [ "/etc/tinc" ]
ENTRYPOINT [ "/usr/sbin/tinc" ]
COPY run.sh /
COPY tinc-down /
COPY tinc-up /
RUN chmod a+x /run.sh
RUN chmod a+x /tinc-up
RUN chmod a+x /tinc-down
RUN mkdir hosts
RUN tincd -c . -K
#CMD [ "/run.sh" ]
CMD [ "start" "-D" "-U" "nobody" ]