there is a map with a marker, and the docker don't generate a new certificate all the time
This commit is contained in:
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user