diff --git a/Dockerfile b/Dockerfile index 14a61cd..58768a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,109 +1,109 @@ # # Nasqueron - Base nginx / php-fpm image # FROM debian:jessie MAINTAINER Sébastien Santoro aka Dereckson # # Prepare the container # -ENV PHP_VERSION 7.2.12 +ENV PHP_VERSION 7.2.25 ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=app --with-fpm-group=app ENV PHP_INI_DIR /usr/local/etc/php ENV PHP_BUILD_DEPS bzip2 \ file \ libbz2-dev \ libcurl4-openssl-dev \ libjpeg-dev \ libpng12-dev \ libxpm-dev \ libwebp-dev \ libfreetype6-dev \ libreadline6-dev \ libssl-dev \ libxslt1-dev \ libxml2-dev ENV LANG C.UTF-8 RUN apt-get update && apt-get install -y ca-certificates curl libxml2 autoconf \ libedit-dev libsqlite3-dev xz-utils \ gcc libc-dev make pkg-config nginx-full \ runit nano less tmux wget git locales unzip \ $PHP_BUILD_DEPS $PHP_EXTRA_BUILD_DEPS \ --no-install-recommends && rm -r /var/lib/apt/lists/* \ && dpkg-reconfigure locales RUN gpg --keyserver pool.sks-keyservers.net --recv-keys \ B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F \ 1729F83938DA44E27BA0F4D3DBDB397470D12172 \ && mkdir -p $PHP_INI_DIR/conf.d \ && set -x \ && curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \ && curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \ && gpg --verify php.tar.bz2.asc \ && mkdir -p /usr/src/php \ && tar -xof php.tar.bz2 -C /usr/src/php --strip-components=1 \ && rm php.tar.bz2* \ && cd /usr/src/php \ && export CFLAGS="-fstack-protector-strong -fpic -fpie -O2" \ && export CPPFLAGS="$CFLAGS" \ && export LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" \ && ./configure \ --with-config-file-path="$PHP_INI_DIR" \ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ $PHP_EXTRA_CONFIGURE_ARGS \ --disable-cgi \ --enable-mysqlnd \ --enable-bcmath \ --with-bz2 \ --enable-calendar \ --with-curl \ --with-gd \ --with-jpeg-dir \ --with-freetype-dir \ --with-xpm-dir \ --with-webp-dir \ --enable-exif \ --enable-ftp \ --with-libedit \ --enable-mbstring \ --with-mysqli \ --with-pdo-mysql \ --enable-pcntl \ --with-openssl \ --with-xsl \ --with-readline \ --with-zlib \ --enable-zip \ && make -j"$(nproc)" \ && make install \ && { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \ && make clean \ && pecl install APCu \ && cd /opt \ && curl -sS https://getcomposer.org/installer | php \ && ln -s /opt/composer.phar /usr/local/bin/composer RUN groupadd -r app -g 433 && \ mkdir /home/app && \ mkdir -p /var/wwwroot/default && \ useradd -u 431 -r -g app -d /home/app -s /usr/sbin/nologin -c "Docker image user for web application" app && \ chown -R app:app /home/app /var/wwwroot/default && \ chmod 700 /home/app && \ chmod 711 /var/wwwroot/default COPY files / # # Docker properties # VOLUME ["/var/wwwroot/default", "/etc/nginx"] EXPOSE 80 EXPOSE 443 CMD ["/usr/local/sbin/runsvdir-init"] diff --git a/novolume/Dockerfile b/novolume/Dockerfile index db87d29..ac89985 100644 --- a/novolume/Dockerfile +++ b/novolume/Dockerfile @@ -1,107 +1,107 @@ # # Nasqueron - Base nginx / php-fpm image # FROM debian:jessie MAINTAINER Sébastien Santoro aka Dereckson # # Prepare the container # -ENV PHP_VERSION 7.2.12 +ENV PHP_VERSION 7.2.25 ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=app --with-fpm-group=app ENV PHP_INI_DIR /usr/local/etc/php ENV PHP_BUILD_DEPS bzip2 \ file \ libbz2-dev \ libcurl4-openssl-dev \ libjpeg-dev \ libpng12-dev \ libxpm-dev \ libwebp-dev \ libfreetype6-dev \ libreadline6-dev \ libssl-dev \ libxslt1-dev \ libxml2-dev ENV LANG C.UTF-8 RUN apt-get update && apt-get install -y ca-certificates curl libxml2 autoconf \ libedit-dev libsqlite3-dev xz-utils \ gcc libc-dev make pkg-config nginx-full \ runit nano less tmux wget git locales unzip \ $PHP_BUILD_DEPS $PHP_EXTRA_BUILD_DEPS \ --no-install-recommends && rm -r /var/lib/apt/lists/* \ && dpkg-reconfigure locales RUN gpg --keyserver pool.sks-keyservers.net --recv-keys \ B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F \ 1729F83938DA44E27BA0F4D3DBDB397470D12172 \ && mkdir -p $PHP_INI_DIR/conf.d \ && set -x \ && curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2 \ && curl -SL "http://php.net/get/php-$PHP_VERSION.tar.bz2.asc/from/this/mirror" -o php.tar.bz2.asc \ && gpg --verify php.tar.bz2.asc \ && mkdir -p /usr/src/php \ && tar -xof php.tar.bz2 -C /usr/src/php --strip-components=1 \ && rm php.tar.bz2* \ && cd /usr/src/php \ && export CFLAGS="-fstack-protector-strong -fpic -fpie -O2" \ && export CPPFLAGS="$CFLAGS" \ && export LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" \ && ./configure \ --with-config-file-path="$PHP_INI_DIR" \ --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \ $PHP_EXTRA_CONFIGURE_ARGS \ --disable-cgi \ --enable-mysqlnd \ --enable-bcmath \ --with-bz2 \ --enable-calendar \ --with-curl \ --with-gd \ --with-jpeg-dir \ --with-freetype-dir \ --with-xpm-dir \ --with-webp-dir \ --enable-exif \ --enable-ftp \ --with-libedit \ --enable-mbstring \ --with-mysqli \ --with-pdo-mysql \ --enable-pcntl \ --with-openssl \ --with-xsl \ --with-readline \ --with-zlib \ --enable-zip \ && make -j"$(nproc)" \ && make install \ && { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \ && make clean \ && pecl install APCu \ && cd /opt \ && curl -sS https://getcomposer.org/installer | php \ && ln -s /opt/composer.phar /usr/local/bin/composer RUN groupadd -r app -g 433 && \ mkdir /home/app && \ mkdir -p /var/wwwroot/default && \ useradd -u 431 -r -g app -d /home/app -s /usr/sbin/nologin -c "Docker image user for web application" app && \ chown -R app:app /home/app /var/wwwroot/default && \ chmod 700 /home/app && \ chmod 711 /var/wwwroot/default COPY files / # # Docker properties # EXPOSE 80 EXPOSE 443 CMD ["/usr/local/sbin/runsvdir-init"]