Skip to content
Snippets Groups Projects
Verified Commit 6903437b authored by David Beniamine's avatar David Beniamine
Browse files

Cleaunp use base wordpress image

parent a7ad1fa5
Branches
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ version: "3.0" ...@@ -3,7 +3,7 @@ version: "3.0"
services: services:
wordpress: wordpress:
build: docker/ image: wordpress:php8.1
restart: always restart: always
environment: environment:
TZ: ${TZ} TZ: ${TZ}
......
FROM wordpress:php7.4
RUN apt-get update && apt-get install -y libldap2-dev rsyslog
#RUN docker-php-ext-install ldap
RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && docker-php-ext-install ldap
RUN sed -i 's@\(</VirtualHost>\)@Alias /bulletins-specif /var/www/bulletins-specif\n\1@' /etc/apache2/sites-available/000-default.conf
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/bash
/etc/init.d/rsyslog start
mkdir -p /var/log/apache2
chown -R 33:33 /var/log/apache2
apache2ctl -DFOREGROUND
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment