mirror of
https://github.com/fernwerker/ownDynDNS.git
synced 2025-07-13 15:15:42 +02:00
rebased to serversideup image
This commit is contained in:
parent
465c7447f3
commit
7fdc642a54
2 changed files with 9 additions and 9 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,11 +1,12 @@
|
||||||
FROM php:fpm-alpine
|
FROM serversideup/php:8.3-fpm-nginx-alpine
|
||||||
RUN apk add --no-cache nginx libxml2-dev \
|
USER root
|
||||||
&& docker-php-ext-install soap \
|
RUN mkdir -p /var/www/html/src &&\
|
||||||
&& mkdir -p /var/www/html/src
|
install-php-extensions soap
|
||||||
COPY ./default.conf /etc/nginx/http.d/default.conf
|
USER www-data
|
||||||
COPY ./data/src/ /var/www/html/src
|
COPY --chown=www-data:www-data ./default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY ./data/update.php /var/www/html
|
COPY --chown=www-data:www-data ./data/src/ /var/www/html/src
|
||||||
COPY ./data/.env.dist /var/www/html/.env
|
COPY --chown=www-data:www-data ./data/update.php /var/www/html
|
||||||
|
COPY --chown=www-data:www-data ./data/.env.dist /var/www/html/.env
|
||||||
VOLUME /var/www/html
|
VOLUME /var/www/html
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
|
@ -57,5 +57,4 @@ if (getenv('DDNS_FORCEDHOST') !== false) {
|
||||||
$config['host'] = getenv('DDNS_FORCEDHOST');
|
$config['host'] = getenv('DDNS_FORCEDHOST');
|
||||||
}
|
}
|
||||||
|
|
||||||
print_r ($config);
|
|
||||||
(new netcup\DNS\API\Handler($config, $_REQUEST))->doRun();
|
(new netcup\DNS\API\Handler($config, $_REQUEST))->doRun();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue