there is a map with a marker, and the docker don't generate a new certificate all the time

This commit is contained in:
lenovo
2022-10-29 17:11:25 +02:00
parent 40963ce3cb
commit 4dca5a4760
15 changed files with 129 additions and 106 deletions

View File

@@ -18,12 +18,13 @@ RUN rm -rf /var/lib/apt/lists/*
COPY ./conf/www.conf /etc/php7/php-fpm.d/
RUN mkdir /run/php/
ARG WP_DIR
ARG WP_VOLUME_DIR
ARG MAX_UPLOAD_SIZE
ARG EXECUTION_TIME
# create wp directory
RUN mkdir -p ${WP_DIR}
# create and empty volume dir
RUN mkdir -p ${WP_VOLUME_DIR} && \
rm -rf ${WP_VOLUME_DIR}/*
# replace max file size upload and execution time
RUN sed -i "s/\(upload_max_filesize = \).*\(M\)/\1${MAX_UPLOAD_SIZE}\2/g" /etc/php7/php.ini && \
@@ -36,9 +37,6 @@ RUN adduser -S www-data && \
ENV PHP_VERSION="php-fpm7"
# empty /var/www/html folder to avoid it to rewrite volume
#RUN rm -rf ${WP_DIR}/*
# install wp-cli : https://wp-cli.org/#installing
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar &&\
chmod +x wp-cli.phar && \