Skip to content

Commit

Permalink
add build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 7, 2024
1 parent 5b43927 commit b8007d5
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion dev/BASE
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,39 @@ ENV NGINX_SRC="https://nginx.org/download/nginx-${VER}.tar.gz"
ENV PKG="build-base linux-headers openssl-dev pcre-dev curl zlib-dev"

RUN \
apk --no-cache add ${PKG}
apk --no-cache add ${PKG} && \
curl -fsSL "${NGINX_SRC}" | tar -C /tmp -xz && \
cd /tmp/nginx-"${VER}" && \
./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
--http-proxy-temp-path=/var/cache/nginx/proxy_temp \
--user=$XUSER \
--group=$XUSER \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_stub_status_module \
--with-http_auth_request_module \
--with-file-aio \
--with-threads \
--with-stream \
--with-stream_ssl_module \
--with-stream_realip_module \
--with-http_slice_module \
--with-http_v2_module && \
make -j"$(nproc)" && make install

0 comments on commit b8007d5

Please sign in to comment.