mirror of
https://github.com/luizeof/dockerpress.git
synced 2026-06-19 07:37:10 +00:00
libs
This commit is contained in:
@@ -19,6 +19,7 @@ function update_wp_config() {
|
||||
wp config set DB_USER $WORDPRESS_DB_USER --add --type=constant
|
||||
wp config set DB_PASSWORD $WORDPRESS_DB_PASSWORD --add --type=constant
|
||||
wp config set DB_HOST "$WORDPRESS_DB_HOST:$WORDPRESS_DB_PORT" --add --type=constant
|
||||
wp config set DB_PREFIX $WORDPRESS_DB_PREFIX --add --type=constant
|
||||
wp config set DB_PORT $WORDPRESS_DB_PORT --raw --add --type=constant
|
||||
wp config set WP_DEBUG $WP_DEBUG --raw --add --type=constant
|
||||
wp config set WP_MEMORY_LIMIT 512M --add --type=constant
|
||||
|
||||
+8
-3
@@ -12,6 +12,7 @@ ENV WP_CLI_PACKAGES_DIR "/var/www/.wp-cli/packages/"
|
||||
ENV ADMIN_EMAIL "webmaster@host.com"
|
||||
ENV WP_LOCALE "en_US"
|
||||
ENV WP_DEBUG false
|
||||
ENV WORDPRESS_DB_PREFIX "wp_"
|
||||
ENV WORDPRESS_DB_PORT 3306
|
||||
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="1"
|
||||
ENV DEBIAN_FRONTEND="noninteractive"
|
||||
@@ -57,6 +58,9 @@ RUN install_packages \
|
||||
"curl" \
|
||||
"gnupg"
|
||||
|
||||
|
||||
RUN wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bash
|
||||
|
||||
# Install the Litespeed keys
|
||||
RUN curl --silent --show-error \
|
||||
"http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg" |\
|
||||
@@ -67,8 +71,7 @@ RUN curl --silent --show-error \
|
||||
apt-key add -
|
||||
|
||||
# Install the Litespeed repository
|
||||
RUN \
|
||||
echo "deb http://rpms.litespeedtech.com/debian/ buster main" > "/etc/apt/sources.list.d/openlitespeed.list"
|
||||
RUN # echo "deb http://rpms.litespeedtech.com/debian/ buster main" > "/etc/apt/sources.list.d/openlitespeed.list"
|
||||
|
||||
# Install the Litespeed
|
||||
RUN install_packages \
|
||||
@@ -85,6 +88,7 @@ RUN install_packages \
|
||||
|
||||
# Install PHP modules
|
||||
RUN install_packages \
|
||||
"lsphp74-dev" \
|
||||
"lsphp74-apcu" \
|
||||
"lsphp74-common" \
|
||||
"lsphp74-curl" \
|
||||
@@ -103,7 +107,8 @@ RUN install_packages \
|
||||
"lsphp74-redis" \
|
||||
"lsphp74-sqlite3" \
|
||||
"lsphp74-json" \
|
||||
"lsphp74-tidy"
|
||||
"lsphp74-tidy" \
|
||||
"lsphp74-*"
|
||||
|
||||
# Set the default PHP CLI
|
||||
RUN ln --symbolic --force \
|
||||
|
||||
+8
-3
@@ -12,6 +12,7 @@ ENV WP_CLI_PACKAGES_DIR "/var/www/.wp-cli/packages/"
|
||||
ENV ADMIN_EMAIL "webmaster@host.com"
|
||||
ENV WP_LOCALE "en_US"
|
||||
ENV WP_DEBUG false
|
||||
ENV WORDPRESS_DB_PREFIX "wp_"
|
||||
ENV WORDPRESS_DB_PORT 3306
|
||||
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE="1"
|
||||
ENV DEBIAN_FRONTEND="noninteractive"
|
||||
@@ -57,6 +58,8 @@ RUN install_packages \
|
||||
"curl" \
|
||||
"gnupg"
|
||||
|
||||
RUN wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh | bash
|
||||
|
||||
# Install the Litespeed keys
|
||||
RUN curl --silent --show-error \
|
||||
"http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg" |\
|
||||
@@ -67,8 +70,9 @@ RUN curl --silent --show-error \
|
||||
apt-key add -
|
||||
|
||||
# Install the Litespeed repository
|
||||
RUN \
|
||||
echo "deb http://rpms.litespeedtech.com/debian/ buster main" > "/etc/apt/sources.list.d/openlitespeed.list"
|
||||
RUN # echo "deb http://rpms.litespeedtech.com/debian/ buster main" > "/etc/apt/sources.list.d/openlitespeed.list"
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
# Install the Litespeed
|
||||
RUN install_packages \
|
||||
@@ -103,7 +107,8 @@ RUN install_packages \
|
||||
"lsphp80-redis" \
|
||||
"lsphp80-sqlite3" \
|
||||
#"lsphp80-json" \
|
||||
"lsphp80-tidy"
|
||||
"lsphp80-tidy" \
|
||||
"lsphp80-*"
|
||||
|
||||
# Set the default PHP CLI
|
||||
RUN ln --symbolic --force \
|
||||
|
||||
Reference in New Issue
Block a user