mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-04 16:51:29 +02:00
Dockerize Automation
This commit is contained in:
parent
f160a8b14c
commit
62c6978139
1 changed files with 17 additions and 0 deletions
17
automation/Dockerfile
Normal file
17
automation/Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM phpswoole/swoole:php8.3-alpine
|
||||
|
||||
WORKDIR /opt/registry/automation
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN composer install
|
||||
|
||||
RUN mv /opt/registry/automation/config.php.dist /opt/registry/automation/config.php
|
||||
RUN sed -i "s|'db_username' => 'your_username'|'db_username' => '$DB_USER'|g" /opt/registry/automation/config.php
|
||||
RUN sed -i "s|'db_password' => 'your_password'|'db_password' => '$DB_PASSWORD'|g" /opt/registry/automation/config.php
|
||||
|
||||
VOLUME /var/log/namingo
|
||||
|
||||
RUN echo -e "*\t*\t*\t*\t*\t/usr/bin/php /opt/registry/automation/cron.php 1>> /dev/null 2>&1" >> /var/spool/cron/crontabs/root
|
||||
|
||||
CMD ["crond"]
|
Loading…
Add table
Add a link
Reference in a new issue