Created
June 28, 2020 06:49
-
-
Save lemon-mint/09081f5175d58a2febbb15b40de81655 to your computer and use it in GitHub Desktop.
nginx build test with docker
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 ubuntu:20.04 | |
RUN apt-get update && apt-get upgrade -y && apt-get install apt-utils -y && apt-get install curl wget -y | |
RUN wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz && tar -xvf pcre-8.44.tar.gz | |
RUN wget https://nginx.org/download/nginx-1.19.0.tar.gz && tar -xvf nginx-1.19.0.tar.gz | |
RUN wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz && tar -xvf openssl-1.1.1g.tar.gz | |
RUN wget https://zlib.net/zlib-1.2.11.tar.gz && tar -xvf zlib-1.2.11.tar.gz | |
RUN useradd --shell /usr/sbin/nologin www-data2 | |
RUN apt-get install gcc g++ -y | |
RUN apt-get install perl -y && apt-get install make -y | |
WORKDIR nginx-1.19.0 | |
RUN ./configure --with-zlib=../zlib-1.2.11 --with-pcre=../pcre-8.44 --with-openssl=../openssl-1.1.1g --with-http_ssl_module --with-debug --prefix=/nginx --user=www-data2 --group=www-data | |
RUN make | |
RUN make install | |
RUN apt-get install tree -y | |
WORKDIR /nginx | |
RUN tree -a | |
CMD /nginx/sbin/nginx -g daemon off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works now. On June 28, 2020,