use /root instead of HOME
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2023-04-17 12:22:57 -04:00
parent 92d4e22f6b
commit fb646dbb8f
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 2 additions and 2 deletions

View File

@ -4,10 +4,10 @@ RUN echo "====== INSTALL LIBRARIES ======" \
&& apk add --no-cache gd-dev geoip-dev libatomic_ops-dev libxslt-dev pcre-dev
ARG NGINX_VERSION=branches/default
RUN git -C ${HOME} clone -b "$NGINX_VERSION" --single-branch --depth=1 https://github.com/nginx/nginx.git
RUN git -C /root clone -b "$NGINX_VERSION" --single-branch --depth=1 https://github.com/nginx/nginx.git
RUN echo "====== COMPILE NGINX ======" \
&& cd ${HOME}/nginx \
&& cd /root/nginx \
&& ./auto/configure \
--prefix=/var/www \
--sbin-path=/usr/sbin/nginx \