60 lines
3.0 KiB
Docker
60 lines
3.0 KiB
Docker
FROM bitnami/minideb-extras:stretch-r346
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages libbz2-1.0 libc6 libcomerr2 libcurl3 libffi6 libfreetype6 libgcc1 libgcrypt20 libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libicu57 libidn11 libidn2-0 libjpeg62-turbo libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblzma5 libmemcached11 libmemcachedutil2 libncurses5 libnettle6 libnghttp2-14 libp11-kit0 libpcre3 libpng16-16 libpq5 libpsl5 libreadline7 librtmp1 libsasl2-2 libssh2-1 libssl1.0.2 libssl1.1 libstdc++6 libsybdb5 libtasn1-6 libtidy5 libtinfo5 libunistring0 libxml2 libxslt1.1 zlib1g
|
|
RUN bitnami-pkg unpack nginx-1.14.2-21 --checksum 73c924db078bebc7173aa5a596036285d1da41cbe985d1e4cc024f681e6dca52
|
|
RUN bitnami-pkg unpack php-7.2.17-0 --checksum 97bd9cae7ecc3a5d674f018f908091c8a69dbe88ab0bd7288361b1e3f3fb88ec
|
|
RUN bitnami-pkg install wp-cli-2.1.0-0 --checksum c44d62b19aa37754b55dc040b6e9fb50589ae2a3dac9e6c604653cf7a4f80893
|
|
RUN bitnami-pkg unpack mysql-client-10.2.23-0 --checksum 3f364d915f1e62037db20a41c7d750004d69c897dd7934e9a3cd2d4c491f4175
|
|
RUN bitnami-pkg unpack wordpress-5.1.1-6 --checksum f29a7ea66e69e0d84c36c9a93fca7cd7bd0d1de1acfbf175224d1f1549c5034d
|
|
RUN mkdir -p /opt/bitnami/php/logs && chown daemon /opt/bitnami/php/logs && \
|
|
mkdir -p /opt/bitnami/php/tmp && chown daemon /opt/bitnami/php/tmp && \
|
|
ln -sf /opt/bitnami/php/etc /opt/bitnami/php/conf
|
|
RUN ln -sf /dev/stdout /opt/bitnami/nginx/logs/access.log
|
|
RUN ln -sf /dev/stderr /opt/bitnami/nginx/logs/error.log
|
|
|
|
COPY rootfs /
|
|
ENV ALLOW_EMPTY_PASSWORD="no" \
|
|
BITNAMI_APP_NAME="wordpress-nginx" \
|
|
BITNAMI_IMAGE_VERSION="5.1.1-debian-9-r39" \
|
|
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="" \
|
|
NGINX_DAEMON_GROUP="daemon" \
|
|
NGINX_DAEMON_USER="daemon" \
|
|
NGINX_HTTPS_PORT_NUMBER="443" \
|
|
NGINX_HTTP_PORT_NUMBER="80" \
|
|
PATH="/opt/bitnami/nginx/sbin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/wp-cli/bin:/opt/bitnami/mysql/bin:$PATH" \
|
|
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_USER="bn_wordpress" \
|
|
WORDPRESS_EMAIL="user@example.com" \
|
|
WORDPRESS_FIRST_NAME="FirstName" \
|
|
WORDPRESS_HOST="" \
|
|
WORDPRESS_HTACCESS_OVERRIDE_NONE="yes" \
|
|
WORDPRESS_HTTPS_PORT="443" \
|
|
WORDPRESS_HTTP_PORT="80" \
|
|
WORDPRESS_LAST_NAME="LastName" \
|
|
WORDPRESS_PASSWORD="bitnami" \
|
|
WORDPRESS_SKIP_INSTALL="no" \
|
|
WORDPRESS_TABLE_PREFIX="wp_" \
|
|
WORDPRESS_USERNAME="user"
|
|
|
|
EXPOSE 80 443
|
|
|
|
ENTRYPOINT [ "/app-entrypoint.sh" ]
|
|
CMD [ "./run.sh" ]
|