Skip to content

Instantly share code, notes, and snippets.

@matsuu
Created June 3, 2014 16:24
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 matsuu/03bd48eb43399e0797e5 to your computer and use it in GitHub Desktop.
Save matsuu/03bd48eb43399e0797e5 to your computer and use it in GitHub Desktop.
Dockerfile for tengine-1.5.2
FROM centos:latest
RUN yum install -y http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum install -y gcc pcre-devel zlib-devel openssl-devel libxslt-devel gd-devel lua-devel GeoIP-devel
RUN cd /usr/local/src && \
wget http://tengine.taobao.org/download/tengine-1.5.2.tar.gz && \
tar zxf tengine-1.5.2.tar.gz
RUN cd /usr/local/src/tengine-1.5.2 && \
./configure --enable-mods-shared=all && \
make && \
make install && \
make dso_install
WORKDIR /usr/local/nginx
EXPOSE 80
CMD ["sbin/nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment