Dockerize EPP

This commit is contained in:
Ben van Hartingsveldt 2025-01-14 23:26:54 +01:00
parent 73f2ca17b0
commit e5112eefa4
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB

14
epp/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM phpswoole/swoole:php8.3-alpine
WORKDIR /opt/registry/epp
COPY . .
RUN composer install
RUN mv /opt/registry/epp/config.php.dist /opt/registry/epp/config.php
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/epp/config.php
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/epp/config.php
VOLUME /var/log/namingo
CMD ["php","/opt/registry/epp/start_epp.php"]