Files
hass-addon-repository/tinc-homeassistant/Dockerfile
2022-01-12 23:20:46 +01:00

25 lines
375 B
Docker

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" ]