Created
January 22, 2014 11:30
-
-
Save narate/8557211 to your computer and use it in GitHub Desktop.
Docker image with ngx_openresty and nginx-push-stream-module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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