-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (34 loc) · 1.44 KB
/
Dockerfile
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
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:14.04.4
MAINTAINER Peter Tonoli "[email protected]"
# Statically compile Brotli at the moment, as the library isn't in the Ubuntu mainline yet
ENV NGX_BROTLI_STATIC_MODULE_ONLY=1
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install checkinstall \
libpcre3-dev \
zlib1g-dev \
libpcre3 \
unzip \
git \
libssl-dev
RUN apt-get clean
ADD http://nginx.org/download/nginx-1.10.1.tar.gz /root/build/
WORKDIR /root/build
RUN tar -xf nginx-1.10.1.tar.gz
ADD https://github.com/pagespeed/ngx_pagespeed/archive/release-1.11.33.2-beta.zip /root/build/
WORKDIR /root/build
RUN unzip release-1.11.33.2-beta.zip
WORKDIR /root/build/ngx_pagespeed-release-1.11.33.2-beta
ADD https://dl.google.com/dl/page-speed/psol/1.11.33.2.tar.gz /root/build/ngx_pagespeed-release-1.11.33.2-beta/
WORKDIR /root/build/ngx_pagespeed-release-1.11.33.2-beta
RUN tar -xvzf 1.11.33.2.tar.gz
WORKDIR /root/build/ngx_brotli
RUN git clone --recursive https://github.com/google/ngx_brotli.git /root/build/ngx_brotli/
WORKDIR /root/build/nginx-upstream-fair
RUN git clone https://github.com/gnosek/nginx-upstream-fair.git /root/build/nginx-upstream-fair/
ADD ./resource/configure.sh /root/build/nginx-1.10.1/
WORKDIR /root/build/nginx-1.10.1
RUN chmod a+x configure.sh
RUN ./configure.sh && make -j4
RUN echo "metaverseorg: Nginx 1.10.1" > description-pak && \
checkinstall --strip --exclude /etc/nginx/* -Dy --install=no --nodoc make -i install
CMD ["/bin/bash"]