42_Inception/srcs/requirements/wordpress/Dockerfile
2025-01-25 11:41:12 +01:00

20 lines
No EOL
609 B
Docker

FROM alpine:3.21.2
LABEL org.opencontainers.image.authors="alier@student.42mulhouse.fr"
RUN apk add php84 php84-phar php84-fpm php84-mysqli php84-iconv fcgi curl
RUN ln -s /usr/bin/php84 /usr/bin/php && \
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && \
mv wp-cli.phar /usr/local/bin/wp
COPY tools/setup_wordpress.sh /setup_wordpress.sh
COPY conf/www.conf /etc/php84/php-fpm.d/www.conf
HEALTHCHECK --start-period=5s \
CMD cgi-fcgi -bind -connect 127.0.0.1:9000 || exit 1
EXPOSE 9000
ENTRYPOINT ["sh", "setup_wordpress.sh"]