Added more PHP modules for performance; removed openssl as it's not needed
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -6,12 +6,14 @@ ARG GRAV_VERSION=1.5.10
|
|||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
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 \
|
||||||
|
php-acpu \
|
||||||
php-curl \
|
php-curl \
|
||||||
php-gd \
|
php-gd \
|
||||||
php-mbstring \
|
php-mbstring \
|
||||||
php-xml \
|
php-xml \
|
||||||
|
php-yaml \
|
||||||
php-zip \
|
php-zip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@@ -24,7 +26,7 @@ RUN mkdir -p /var/www \
|
|||||||
&& rm grav-admin-v$GRAV_VERSION.zip \
|
&& rm grav-admin-v$GRAV_VERSION.zip \
|
||||||
&& cd grav-admin \
|
&& cd grav-admin \
|
||||||
&& bin/gpm install -f -y 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/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& chown www-data:www-data /var/www
|
&& chown www-data:www-data /var/www
|
||||||
|
|
||||||
@@ -40,5 +42,5 @@ RUN usermod -aG www-data nginx
|
|||||||
# Run startup script
|
# Run startup script
|
||||||
ADD resources /
|
ADD resources /
|
||||||
|
|
||||||
# ENTRYPOINT [ "/usr/local/bin/startup.sh" ]
|
# ENTRYPOINT ["/usr/local/bin/startup.sh"]
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["php", "nginx", "-g", "daemon off;"]
|
||||||
Reference in New Issue
Block a user