mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-26 04:18:29 +02:00
Dockerize Control Panel
This commit is contained in:
parent
199e0e4772
commit
98b2f93d7e
2 changed files with 19 additions and 1 deletions
14
cp/Dockerfile
Normal file
14
cp/Dockerfile
Normal 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"]
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue