use nxbuilder:alpine
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4ad316c1ac
commit
92d4e22f6b
|
@ -1,13 +1,13 @@
|
|||
FROM nephatrine/alpine:builder AS builder
|
||||
FROM nephatrine/nxbuilder:alpine AS builder
|
||||
|
||||
RUN echo "====== INSTALL LIBRARIES ======" \
|
||||
&& apk add --no-cache gd-dev geoip-dev libatomic_ops-dev libxml2-dev libxslt-dev openssl-dev pcre-dev zlib-dev
|
||||
&& apk add --no-cache gd-dev geoip-dev libatomic_ops-dev libxslt-dev pcre-dev
|
||||
|
||||
ARG NGINX_VERSION=branches/default
|
||||
RUN git -C /usr/src clone -b "$NGINX_VERSION" --single-branch --depth=1 https://github.com/nginx/nginx.git
|
||||
RUN git -C ${HOME} clone -b "$NGINX_VERSION" --single-branch --depth=1 https://github.com/nginx/nginx.git
|
||||
|
||||
RUN echo "====== COMPILE NGINX ======" \
|
||||
&& cd /usr/src/nginx \
|
||||
&& cd ${HOME}/nginx \
|
||||
&& ./auto/configure \
|
||||
--prefix=/var/www \
|
||||
--sbin-path=/usr/sbin/nginx \
|
||||
|
|
Loading…
Reference in New Issue