-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 1.17 KB
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
# Dockerfile for openresty
# VERSION 0.0.4
FROM ubuntu:14.04
MAINTAINER Tor Hveem <tor@hveem.no>
ENV REFRESHED_AT 2014-08-08
ENV DEBIAN_FRONTEND noninteractive
RUN echo "deb-src http://archive.ubuntu.com/ubuntu trusty main" >> /etc/apt/sources.list
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get -y install wget vim git libpq-dev
# Openresty (Nginx)
RUN apt-get -y build-dep nginx \
&& apt-get -q -y clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN wget http://openresty.org/download/ngx_openresty-1.7.10.1.tar.gz \
&& tar xvfz ngx_openresty-1.7.10.1.tar.gz \
&& cd ngx_openresty-1.7.10.1 \
&& ./configure --with-luajit --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-http_postgres_module --with-pcre-jit \
&& make \
&& make install \
&& rm -rf /ngx_openresty*
EXPOSE 8080
CMD /usr/local/openresty/nginx/sbin/nginx -p `pwd` -c nginx.conf