Skip to content

Instantly share code, notes, and snippets.

@tkaemming
Created June 10, 2015 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkaemming/3f1510022b5ca8d3edb5 to your computer and use it in GitHub Desktop.
Save tkaemming/3f1510022b5ca8d3edb5 to your computer and use it in GitHub Desktop.
nginx-push-stream dockerfile
FROM buildpack-deps:jessie
RUN NGINX_VERSION=1.9.1 && \
PUSHSTREAM_VERSION=0.5.1 && \
curl -LO https://github.com/wandenberg/nginx-push-stream-module/archive/$PUSHSTREAM_VERSION.tar.gz && \
tar xvf $PUSHSTREAM_VERSION.tar.gz && \
curl -LO http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \
tar xvf nginx-$NGINX_VERSION.tar.gz && \
cd nginx-$NGINX_VERSION && \
./configure --add-module=../nginx-push-stream-module-$PUSHSTREAM_VERSION && \
make build install && \
sed -e "s/use\s\+poll/use epoll/" -e "s/listen\s\+9080/listen 80/" ../nginx-push-stream-module-$PUSHSTREAM_VERSION/misc/nginx.conf > /usr/local/nginx/conf/nginx.conf.pushstream && \
rm -rf nginx-$NGINX_VERSION nginx-push-stream-module-$PUSHSTREAM_VERSION
EXPOSE 80 443
CMD ["/usr/local/nginx/sbin/nginx", "-c", "/usr/local/nginx/conf/nginx.conf.pushstream"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment