Added more PHP modules for performance; removed openssl as it's not needed

This commit is contained in:
William Miceli
2019-03-28 19:11:40 -04:00
parent b6774dcd99
commit e837ce0036

View File

@@ -6,12 +6,14 @@ ARG GRAV_VERSION=1.5.10
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
# Install PHP and Modules Required for Grav
# Install PHP and modules needed for Grav, with optional modules to help with performance
php \
php-acpu \
php-curl \
php-gd \
php-mbstring \
php-xml \
php-yaml \
php-zip \
&& rm -rf /var/lib/apt/lists/*
@@ -24,7 +26,7 @@ RUN mkdir -p /var/www \
&& rm grav-admin-v$GRAV_VERSION.zip \
&& cd grav-admin \
&& bin/gpm install -f -y admin \
&& apt-get remove -y ca-certificates unzip wget \
&& apt-get remove -y ca-certificates openssl unzip wget \
&& rm -rf /var/lib/apt/lists/* \
&& chown www-data:www-data /var/www
@@ -41,4 +43,4 @@ RUN usermod -aG www-data nginx
ADD resources /
# ENTRYPOINT ["/usr/local/bin/startup.sh"]
CMD ["nginx", "-g", "daemon off;"]
CMD ["php", "nginx", "-g", "daemon off;"]