Added ZeroTier

This commit is contained in:
Deon George 2023-09-04 15:46:25 +12:00
parent 1e17aed170
commit 2a557f2a61
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,11 @@
FROM registry.dege.au/leenooks/php:8.1-fpm-alpine-pgsql-server FROM registry.dege.au/leenooks/php:8.1-fpm-alpine-pgsql-server
VOLUME [ "/var/cache/composer" ] VOLUME [ "/var/cache/composer", "/var/lib/zerotier-one" ]
# Add Zerotier
RUN apk add zerotier-one -X http://dl-cdn.alpinelinux.org/alpine/v3.17/community --no-cache
COPY init-container /sbin/
COPY . /var/www/html/ COPY . /var/www/html/
RUN mkdir -p ${COMPOSER_HOME} && \ RUN mkdir -p ${COMPOSER_HOME} && \

6
init-container Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ -n "${ZEROTIER_START}" -a -e /usr/sbin/zerotier-one ]; then
echo "* Starting ZeroTier"
/usr/sbin/zerotier-one -d
fi