fix: creates custom images for each container

This commit is contained in:
2025-05-20 23:36:55 -05:00
parent 295f68cb92
commit 079a7e2cb5
7 changed files with 39 additions and 29 deletions

View File

@@ -0,0 +1,7 @@
FROM php:8.4-cli-alpine3.21
RUN docker-php-ext-install pdo_mysql
COPY --chown=www-data:www-data . /app
ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "scheduler_monitor" ]

View File

@@ -1,12 +1,7 @@
FROM registry.caldwell.digital/library/php:8.4-apache
FROM php:8.4-cli-alpine3.21
RUN apt-get update && \
apt-get install libldap2-dev -y && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-install ldap
RUN docker-php-ext-install pdo_mysql
COPY --chown=www-data:www-data . /var/www
COPY --chown=www-data:www-data . /app
COPY ./bash/vhost.conf /etc/apache2/sites-enabled/vhost.conf
RUN rm /etc/apache2/sites-enabled/000-default.conf
ENTRYPOINT [ "php", "/app/bin/console", "messenger:consume", "async" ]