1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-17 00:35:43 +02:00

fixed permission issues

This commit is contained in:
niiwiicamo 2024-10-24 15:22:41 +02:00
parent 744cdf22e8
commit 1d04581ce2
9 changed files with 9 additions and 6 deletions

View file

@ -1,14 +1,17 @@
FROM serversideup/php:8.3-fpm-nginx-alpine
USER root
COPY --chown=root:root data/hooks/ /data/hooks
RUN mkdir -p /data/hooks /hooks
COPY --chown=www-data:www-data data/hooks/ /data/hooks
VOLUME [ "/hooks" ]
RUN chmod 777 /hooks
COPY --chown=root:root data/etc/ /etc
RUN mkdir -p /var/www/html/public/src &&\
install-php-extensions soap
USER www-data
WORKDIR /var/www/html/public
COPY --chown=www-data:www-data ./data/src/ /var/www/html/public/src
COPY --chown=www-data:www-data ./data/update.php /var/www/html/public
COPY --chown=www-data:www-data ./data/.env.dist /var/www/html/public/.env
COPY --chown=www-data:www-data data/var/www/html/public/src/ /var/www/html/public/src
COPY --chown=www-data:www-data data/var/www/html/public/update.php /var/www/html/public
COPY --chown=www-data:www-data data/var/www/html/public/.env.dist /var/www/html/public/.env
RUN sed -i "s|listen \[::\]:8080 default_server;|# \0|" /etc/nginx/site-opts.d/http.conf.template
HEALTHCHECK --interval= --timeout=5s --start-period=10s CMD curl --insecure --silent --location --show-error --fail http://localhost:8080$HEALTHCHECK_PATH || exit 1
LABEL org.opencontainers.image.source=https://github.com/niiwiicamo/owndyndns

View file

@ -1,2 +1,2 @@
foreground { echo "copying hooks to volume /hooks for use by certbot..." }
cp /data/hooks/* /hooks/
foreground { echo "(custom-hook-provider): Copying hooks to volume /hooks for use by certbot..." }
foreground { cp /data/hooks/auth-hook.sh /hooks/ }