-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (27 loc) · 923 Bytes
/
Dockerfile
File metadata and controls
30 lines (27 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM centos:7
ARG NGINX_VERSION=1.23.1
ARG NGX_MRUBY_VERSION=2.2.5
COPY build_config.rb /tmp/
RUN yum -y groupinstall "Development Tools" \
&& yum install -y \
openssl-devel \
rake \
\
&& cd /usr/local/src \
&& git clone --branch v$NGX_MRUBY_VERSION --depth 1 https://github.com/matsumotory/ngx_mruby.git \
&& curl -s -OL http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && tar -xf nginx-$NGINX_VERSION.tar.gz \
\
&& cd /usr/local/src/ngx_mruby \
&& cp /tmp/build_config.rb . \
&& ./configure --enable-dynamic-module --with-ngx-src-root=../nginx-$NGINX_VERSION \
&& make build_mruby \
&& make generate_gems_config_dynamic \
\
&& cd /usr/local/src/nginx-$NGINX_VERSION \
&& ./configure \
--with-compat \
--add-dynamic-module=../ngx_mruby \
--add-dynamic-module=../ngx_mruby/dependence/ngx_devel_kit \
&& make modules \
\
&& cp /usr/local/src/nginx-$NGINX_VERSION/objs/*.so /tmp/