forked from krakazyabra/wordpress-ols-php8-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
84 lines (74 loc) · 3.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM centos:8
ENV OLS_VERSION=1.6.20 \
PHP_VERSION=lsphp80
RUN rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm && \
dnf update -y
RUN dnf install -y epel-release wget cronie socat mysql zip unzip ed && \
dnf install -y $PHP_VERSION $PHP_VERSION-mysqlnd $PHP_VERSION-process $PHP_VERSION-mbstring $PHP_VERSION-gd $PHP_VERSION-opcache $PHP_VERSION-bcmath $PHP_VERSION-pdo $PHP_VERSION-common $PHP_VERSION-xml $PHP_VERSION-zip $PHP_VERSION-imap $PHP_VERSION-soap $PHP_VERSION-bcmath && \
dnf install -y openlitespeed
RUN sed -i 's/$SERVER_ROOT\/lsphp73\/bin\/lsphp/$SERVER_ROOT\/lsphp80\/bin\/lsphp/g' /usr/local/lsws/conf/httpd_config.conf
RUN 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/bin/wp && \
ln -s /usr/local/lsws/$PHP_VERSION/bin/php /usr/bin/php
RUN wget -O - https://get.acme.sh | sh
EXPOSE 8088 7080 80
ADD docker.conf /usr/local/lsws/conf/templates/docker.conf
ADD setup_docker.sh /usr/local/lsws/bin/setup_docker.sh
ADD httpd_config.xml /usr/local/lsws/conf/httpd_config.xml
ADD htpasswd /usr/local/lsws/admin/conf/htpasswd
RUN chown 999:999 /usr/local/lsws/conf -R
RUN cp -RP /usr/local/lsws/conf/ /usr/local/lsws/.conf/
RUN cp -RP /usr/local/lsws/admin/conf /usr/local/lsws/admin/.conf/
RUN ln -sf /usr/local/lsws/$PHP_VERSION/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp7
ENV ALLOW_EMPTY_PASSWORD="no" \
APACHE_ENABLE_CUSTOM_PORTS="no" \
APACHE_HTTPS_PORT_NUMBER="8443" \
APACHE_HTTP_PORT_NUMBER="8080" \
BITNAMI_APP_NAME="wordpress" \
BITNAMI_IMAGE_VERSION="5.6.2-debian-10-r6" \
MARIADB_HOST="mariadb" \
MARIADB_PORT_NUMBER="3306" \
MARIADB_ROOT_PASSWORD="" \
MARIADB_ROOT_USER="root" \
MYSQL_CLIENT_CREATE_DATABASE_NAME="" \
MYSQL_CLIENT_CREATE_DATABASE_PASSWORD="" \
MYSQL_CLIENT_CREATE_DATABASE_PRIVILEGES="ALL" \
MYSQL_CLIENT_CREATE_DATABASE_USER="" \
MYSQL_CLIENT_ENABLE_SSL="no" \
MYSQL_CLIENT_SSL_CA_FILE="" \
NAMI_PREFIX="/.nami" \
OS_ARCH="amd64" \
OS_FLAVOUR="debian-10" \
OS_NAME="linux" \
PHP_MEMORY_LIMIT="256M" \
PHP_OPCACHE_ENABLED="yes" \
SMTP_HOST="" \
SMTP_PASSWORD="" \
SMTP_PORT="" \
SMTP_PROTOCOL="" \
SMTP_USER="" \
SMTP_USERNAME="" \
WORDPRESS_BLOG_NAME="User's Blog!" \
WORDPRESS_DATABASE_NAME="bitnami_wordpress" \
WORDPRESS_DATABASE_PASSWORD="" \
WORDPRESS_DATABASE_SSL_CA_FILE="" \
WORDPRESS_DATABASE_USER="bn_wordpress" \
WORDPRESS_EMAIL="user@example.com" \
WORDPRESS_EXTRA_WP_CONFIG_CONTENT="" \
WORDPRESS_FIRST_NAME="FirstName" \
WORDPRESS_HTACCESS_OVERRIDE_NONE="yes" \
WORDPRESS_HTACCESS_PERSISTENCE_ENABLED="no" \
WORDPRESS_HTTPS_PORT="8443" \
WORDPRESS_HTTP_PORT="8080" \
WORDPRESS_LAST_NAME="LastName" \
WORDPRESS_PASSWORD="bitnami" \
WORDPRESS_RESET_DATA_PERMISSIONS="no" \
WORDPRESS_SCHEME="http" \
WORDPRESS_SKIP_INSTALL="no" \
WORDPRESS_TABLE_PREFIX="wp_" \
WORDPRESS_USERNAME="user"
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /var/www/vhosts/