added initial tinc config
This commit is contained in:
25
tinc-homeassistant/Dockerfile
Normal file
25
tinc-homeassistant/Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user