Dockerize Control Panel

This commit is contained in:
Ben van Hartingsveldt 2025-01-16 11:19:24 +01:00
parent 199e0e4772
commit 98b2f93d7e
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB
2 changed files with 19 additions and 1 deletions

14
cp/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM php:8.3-alpine
WORKDIR /var/www/cp
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . .
RUN composer install
VOLUME /var/log/namingo
CMD ["php-fpm","-D"]

View file

@ -4,7 +4,11 @@ WORKDIR /var/www/whois
COPY . .
RUN composer require gregwar/captcha
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN composer install
RUN mv /var/www/whois/config.php.dist /var/www/whois/config.php
RUN sed -i "s|'whois_url' => '.*'|'whois_url' => 'whois.${REGISTRY_DOMAIN}'|" /var/www/whois/config.php
RUN sed -i "s|'rdap_url' => '.*'|'rdap_url' => 'rdap.${REGISTRY_DOMAIN}'|" /var/www/whois/config.php