php-worker: move clean up step to right palce (#2315)

This commit is contained in:
Shao Yu-Lung (Allen) 2019-10-07 10:49:11 +08:00 committed by GitHub
parent 8f6fa0e868
commit 54a29b178a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -130,10 +130,6 @@ RUN if [ ${INSTALL_GMP} = true ]; then \
&& docker-php-ext-install gmp \ && docker-php-ext-install gmp \
;fi ;fi
RUN rm /var/cache/apk/* \
&& mkdir -p /var/www
# Install Redis package: # Install Redis package:
ARG INSTALL_REDIS=false ARG INSTALL_REDIS=false
RUN if [ ${INSTALL_REDIS} = true ]; then \ RUN if [ ${INSTALL_REDIS} = true ]; then \
@ -213,4 +209,8 @@ RUN php -v | head -n 1 | grep -q "PHP ${PHP_VERSION}."
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# #
# Clean up
RUN rm /var/cache/apk/* \
&& mkdir -p /var/www
WORKDIR /etc/supervisor/conf.d/ WORKDIR /etc/supervisor/conf.d/