17 lines
629 B
Erlang
17 lines
629 B
Erlang
FROM registry.caldwell.digital/library/php:8.4-apache
|
|
|
|
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
|
|
|
|
COPY --chown=www-data:www-data . /var/www
|
|
COPY --chmod=0775 ./bash/entrypoint.sh /usr/local/bin/
|
|
COPY ./bash/vhost.conf /etc/apache2/sites-enabled/vhost.conf
|
|
RUN rm /etc/apache2/sites-enabled/000-default.conf
|
|
|
|
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD [ "php", "/var/www/bin/console", "startup:status" ]
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|