fix: creates custom images for each container
This commit is contained in:
7
docker/Dockerfile.scheduler
Normal file
7
docker/Dockerfile.scheduler
Normal 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" ]
|
||||
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user