-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (11 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
18 lines (11 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM nginx:alpine
RUN apk add --update git make gcc musl-dev pcre-dev zlib-dev
RUN git clone https://github.com/simplresty/ngx_devel_kit.git
RUN git clone https://github.com/openresty/lua-nginx-module.git
RUN git clone http://luajit.org/git/luajit-2.0.git && cd luajit-2.0 && make && make install
RUN wget -qO - http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | tar xfzv -
RUN cd nginx-${NGINX_VERSION} && ./configure --with-compat --add-dynamic-module=../ngx_devel_kit --add-dynamic-module=../lua-nginx-module && make modules && cp objs/*.so /etc/nginx/modules
COPY conf/nginx.conf /etc/nginx/nginx.conf
COPY conf/default.conf /etc/nginx/conf.d/default.conf
RUN rm -rf ngx_devel_kit* lua-nginx-module* luajit-2.0* nginx-${NGINX_VERSION}*
CMD ["nginx", "-g", "daemon off;"]