Skip to content

Commit d5b6162

Browse files
committed
Compile the geoip module.
1 parent c1b63d9 commit d5b6162

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ RUN \
5555
pcre-dev \
5656
openssl-dev \
5757
zlib-dev \
58+
geoip-dev \
5859
&& \
5960
# Download.
6061
echo "Downloading OpenResty..." && \
@@ -106,10 +107,12 @@ RUN \
106107
--with-http_degradation_module \
107108
--with-http_slice_module \
108109
--with-http_stub_status_module \
110+
--with-http_geoip_module \
109111
--with-stream \
110112
--with-stream_ssl_module \
111113
--with-stream_realip_module \
112114
--with-stream_ssl_preread_module \
115+
--with-stream_geoip_module \
113116
--with-pcre-jit \
114117
&& \
115118
make -j$(nproc) && \
@@ -152,6 +155,7 @@ RUN \
152155
bash \
153156
# For openresty
154157
pcre \
158+
geoip \
155159
&& \
156160
# Adjust the logrotate config file.
157161
sed-patch 's|^/var/log/messages|#/var/log/messages|' /etc/logrotate.conf

0 commit comments

Comments
 (0)