Skip to content

Instantly share code, notes, and snippets.

@narate
Created January 22, 2014 11:30
Show Gist options
  • Save narate/8557211 to your computer and use it in GitHub Desktop.
Save narate/8557211 to your computer and use it in GitHub Desktop.
Docker image with ngx_openresty and nginx-push-stream-module
FROM debian
MAINTAINER Narate Ketram
RUN mkdir -p ~/tmp
RUN cd ~/tmp
RUN apt-get update
RUN apt-get -y install wget git libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make
RUN wget http://openresty.org/download/ngx_openresty-1.5.8.1.tar.gz
RUN tar -xzvf ngx_openresty-1.5.8.1.tar.gz
RUN git clone https://github.com/wandenberg/nginx-push-stream-module.git
RUN cd ngx_openresty-1.5.8.1
CMD ./configure --add-module=../nginx-push-stream-module
CMD make
CMD make install
RUN cd ..
RUN mkdir -p ~/chat/logs ~/chat/conf ~/chat/www
RUN cp -v nginx-push-stream-module/misc/nginx.conf ~/chat/conf/
RUN cp -rv nginx-push-stream-module/misc/examples ~/chat/www/
RUN echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment