Added ZeroTier
This commit is contained in:
parent
1e17aed170
commit
2a557f2a61
@ -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
6
init-container
Executable 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
|
Loading…
Reference in New Issue
Block a user