-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 701 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:10.12
RUN apt-get update && apt-get upgrade -y && apt-get -y install wget
RUN apt-get install -y php7.3 \
php-fpm \
php-mysql \
mariadb-client
RUN wget https://tr.wordpress.org/wordpress-6.1-tr_TR.tar.gz -P /var/www
RUN cd /var/www && tar -xzf wordpress-6.1-tr_TR.tar.gz && rm wordpress-6.1-tr_TR.tar.gz
RUN chown -R root:root /var/www/wordpress
RUN wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
RUN chmod +x wp-cli.phar
RUN mv wp-cli.phar /usr/local/bin/wp
COPY ./conf/php.conf /etc/php/7.3/fpm/pool.d/www.conf
COPY conf/wordpress_config.sh wordpress_config.sh
EXPOSE 9000
RUN chmod +x wordpress_config.sh
ENTRYPOINT ["sh", "wordpress_config.sh"]