Dockerfile diff
1 removal
Words removed | 1 |
Total words | 76 |
Words removed (%) | 1.32 |
20 lines
0 additions
Words added | 0 |
Total words | 75 |
Words added (%) | 0.00 |
20 lines
### Stage: PHP FPM - NGINX ###
### Stage: PHP FPM - NGINX ###
FROM serversideup/php:8.0-fpm-nginx AS php-nginx
FROM serversideup/php:8.0-fpm-nginx AS php-nginx
COPY --chown=9999:9999 . /var/www/html
COPY --chown=9999:9999 . /var/www/html
RUN apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends php8.0-imagick php8.0-bcmath \
&& apt-get install -y --no-install-recommends php8.0-imagick php8.0-bcmath \
&& apt-get clean \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
### Stage: PHP CLI ###
### Stage: PHP CLI ###
FROM serversideup/php:8.0-cli AS php-cli
FROM serversideup/php:8.0-cli AS php-cli
COPY --from=php-nginx --chown=9999:9999 /var/www/html /var/www/html
COPY --from=php-nginx --chown=9999:9999 /var/www/html /var/www/html
RUN apt-get update \
RUN apt-get update \
&& apt-get install -y --no-install-recommends php8.0-imagick php8.0-bcmath \
&& apt-get install -y --no-install-recommends php8.0-imagick php8.0-bcmath \
&& apt-get clean \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*