init ninedocker
This commit is contained in:
25
misc/images/wordpress/containers/wordpress/Dockerfile
Executable file
25
misc/images/wordpress/containers/wordpress/Dockerfile
Executable file
@ -0,0 +1,25 @@
|
||||
FROM reg.cadoles.com/envole/nineapache:8.1
|
||||
|
||||
# Paquet necessaire pour wordpress
|
||||
RUN apk add php81-mysqli
|
||||
|
||||
# Installation de wp-cli
|
||||
COPY wp-cli.phar /usr/local/bin/wp
|
||||
RUN chmod +x /usr/local/bin/wp
|
||||
|
||||
# Configuration apache
|
||||
RUN cd /app/public
|
||||
COPY apache.conf /etc/apache2/conf.d/zapp.conf
|
||||
|
||||
# Installation des sources wordpress
|
||||
RUN wp core download --path=/app/public --locale=fr_FR
|
||||
RUN chown -R apache:apache /app/public
|
||||
RUN find /app/public -type d -exec chmod 755 {} +
|
||||
RUN find /app/public -type f -exec chmod 644 {} +
|
||||
|
||||
RUN mkdir /docker
|
||||
COPY entrypoint.sh /docker/entrypoint.sh
|
||||
RUN chmod +x /docker/entrypoint.sh
|
||||
|
||||
# CMD
|
||||
CMD /docker/entrypoint.sh && /etc/apache2/apache2.sh
|
Reference in New Issue
Block a user