1- FROM php:7.3.9 -fpm-alpine3.10
1+ FROM php:7.4.2 -fpm-alpine3.11
22
33LABEL maintainer="Ric Harvey <ric@ngd.io>"
44
@@ -49,14 +49,14 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
4949 --with-http_auth_request_module \
5050 --with-http_xslt_module=dynamic \
5151 --with-http_image_filter_module=dynamic \
52- --with-http_geoip_module=dynamic \
52+ # --with-http_geoip_module=dynamic \
5353 --with-http_perl_module=dynamic \
5454 --with-threads \
5555 --with-stream \
5656 --with-stream_ssl_module \
5757 --with-stream_ssl_preread_module \
5858 --with-stream_realip_module \
59- --with-stream_geoip_module=dynamic \
59+ # --with-stream_geoip_module=dynamic \
6060 --with-http_slice_module \
6161 --with-mail \
6262 --with-mail_ssl_module \
@@ -65,7 +65,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
6565 --with-http_v2_module \
6666 --add-module=/usr/src/ngx_devel_kit-$DEVEL_KIT_MODULE_VERSION \
6767 --add-module=/usr/src/lua-nginx-module-$LUA_MODULE_VERSION \
68- --add-module=/usr/src/ngx_http_geoip2_module-$GEOIP2_MODULE_VERSION \
68+ # --add-module=/usr/src/ngx_http_geoip2_module-$GEOIP2_MODULE_VERSION \
6969 " \
7070 && addgroup -S nginx \
7171 && adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
@@ -82,15 +82,15 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
8282 gnupg \
8383 libxslt-dev \
8484 gd-dev \
85- geoip-dev \
85+ # geoip-dev \
8686 libmaxminddb-dev \
8787 perl-dev \
8888 luajit-dev \
8989 && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.tar.gz \
9090 && curl -fSL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz.asc -o nginx.tar.gz.asc \
9191 && curl -fSL https://github.com/simpl/ngx_devel_kit/archive/v$DEVEL_KIT_MODULE_VERSION.tar.gz -o ndk.tar.gz \
9292 && curl -fSL https://github.com/openresty/lua-nginx-module/archive/v$LUA_MODULE_VERSION.tar.gz -o lua.tar.gz \
93- && curl -fSL https://github.com/leev/ngx_http_geoip2_module/archive/$GEOIP2_MODULE_VERSION.tar.gz -o ngx_http_geoip2_module.tar.gz \
93+ # && curl -fSL https://github.com/leev/ngx_http_geoip2_module/archive/$GEOIP2_MODULE_VERSION.tar.gz -o ngx_http_geoip2_module.tar.gz \
9494 && export GNUPGHOME="$(mktemp -d)" \
9595 && found='' ; \
9696 for server in \
@@ -109,17 +109,17 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
109109 && tar -zxC /usr/src -f nginx.tar.gz \
110110 && tar -zxC /usr/src -f ndk.tar.gz \
111111 && tar -zxC /usr/src -f lua.tar.gz \
112- && tar -zxC /usr/src -f ngx_http_geoip2_module.tar.gz \
113- && rm nginx.tar.gz ndk.tar.gz lua.tar.gz ngx_http_geoip2_module.tar.gz \
112+ # && tar -zxC /usr/src -f ngx_http_geoip2_module.tar.gz \
113+ # && rm nginx.tar.gz ndk.tar.gz lua.tar.gz ngx_http_geoip2_module.tar.gz \
114114 && cd /usr/src/nginx-$NGINX_VERSION \
115115 && ./configure $CONFIG --with-debug \
116116 && make -j$(getconf _NPROCESSORS_ONLN) \
117117 && mv objs/nginx objs/nginx-debug \
118118 && mv objs/ngx_http_xslt_filter_module.so objs/ngx_http_xslt_filter_module-debug.so \
119119 && mv objs/ngx_http_image_filter_module.so objs/ngx_http_image_filter_module-debug.so \
120- && mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
120+ # && mv objs/ngx_http_geoip_module.so objs/ngx_http_geoip_module-debug.so \
121121 && mv objs/ngx_http_perl_module.so objs/ngx_http_perl_module-debug.so \
122- && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so \
122+ # && mv objs/ngx_stream_geoip_module.so objs/ngx_stream_geoip_module-debug.so \
123123 && ./configure $CONFIG \
124124 && make -j$(getconf _NPROCESSORS_ONLN) \
125125 && make install \
@@ -131,14 +131,14 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
131131 && install -m755 objs/nginx-debug /usr/sbin/nginx-debug \
132132 && install -m755 objs/ngx_http_xslt_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_xslt_filter_module-debug.so \
133133 && install -m755 objs/ngx_http_image_filter_module-debug.so /usr/lib/nginx/modules/ngx_http_image_filter_module-debug.so \
134- && install -m755 objs/ngx_http_geoip_module-debug.so /usr/lib/nginx/modules/ngx_http_geoip_module-debug.so \
134+ # && install -m755 objs/ngx_http_geoip_module-debug.so /usr/lib/nginx/modules/ngx_http_geoip_module-debug.so \
135135 && install -m755 objs/ngx_http_perl_module-debug.so /usr/lib/nginx/modules/ngx_http_perl_module-debug.so \
136- && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so \
136+ # && install -m755 objs/ngx_stream_geoip_module-debug.so /usr/lib/nginx/modules/ngx_stream_geoip_module-debug.so \
137137 && ln -s ../../usr/lib/nginx/modules /etc/nginx/modules \
138138 && strip /usr/sbin/nginx* \
139139 && strip /usr/lib/nginx/modules/*.so \
140140 && rm -rf /usr/src/nginx-$NGINX_VERSION \
141- && rm -rf /usr/src/ngx_http_geoip2_module-$GEOIP2_MODULE_VERSION \
141+ # && rm -rf /usr/src/ngx_http_geoip2_module-$GEOIP2_MODULE_VERSION \
142142 \
143143 # Bring in gettext so we can get `envsubst`, then throw
144144 # the rest away. To do this, we need to install `gettext`
@@ -200,14 +200,12 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
200200 libjpeg-turbo-dev \
201201 postgresql-dev && \
202202 docker-php-ext-configure gd \
203- --with-gd \
204- --with-freetype-dir=/usr/include/ \
205- --with-png-dir=/usr/include/ \
206- --with-jpeg-dir=/usr/include/ && \
203+ --with-freetype \
204+ --with-jpeg && \
207205 # curl iconv session
208206 # docker-php-ext-install pdo_mysql pdo_sqlite mysqli mcrypt gd exif intl xsl json soap dom zip opcache && \
209207 docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \
210- pecl install xdebug-2.7 .2 && \
208+ pecl install xdebug-2.9 .2 && \
211209 pecl install -o -f redis && \
212210 echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \
213211 docker-php-source delete && \
@@ -241,11 +239,12 @@ ADD conf/nginx-site.conf /etc/nginx/sites-available/default.conf
241239ADD conf/nginx-site-ssl.conf /etc/nginx/sites-available/default-ssl.conf
242240RUN ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf
243241
242+ # # disabled due to license changes (to fix in next release)
244243# Add GeoLite2 databases (https://dev.maxmind.com/geoip/geoip2/geolite2/)
245- RUN curl -fSL http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz -o /etc/nginx/GeoLite2-City.mmdb.gz \
246- && curl -fSL http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz -o /etc/nginx/GeoLite2-Country.mmdb.gz \
247- && gunzip /etc/nginx/GeoLite2-City.mmdb.gz \
248- && gunzip /etc/nginx/GeoLite2-Country.mmdb.gz
244+ # RUN curl -fSL http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz -o /etc/nginx/GeoLite2-City.mmdb.gz \
245+ # && curl -fSL http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz -o /etc/nginx/GeoLite2-Country.mmdb.gz \
246+ # && gunzip /etc/nginx/GeoLite2-City.mmdb.gz \
247+ # && gunzip /etc/nginx/GeoLite2-Country.mmdb.gz
249248
250249# tweak php-fpm config
251250RUN echo "cgi.fix_pathinfo=0" > ${php_vars} &&\
0 commit comments