Skip to content

Commit 09a49de

Browse files
committed
ensure nginx directory exists
1 parent 2079f1f commit 09a49de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/dependencies/Dockerfile.ubi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ ARG NGINX
66
ARG NJS
77
ENV NGINX_VERSION=${NGINX}
88
ENV NJS_VERSION=${NJS}
9-
RUN --mount=type=secret,id=rhel_license,dst=/tmp/rhel_license,mode=0644 source /tmp/rhel_license; \
9+
RUN --mount=type=secret,id=rhel_license,dst=/tmp/rhel_license,mode=0644 mkdir -p /nginx/; \
1010
# only build for ppc64le but make multiarch image for mounting
1111
[ $(uname -p) = x86_64 ] && exit 0; \
1212
[ $(uname -p) = aarch64 ] && exit 0; \
13-
mkdir -p /nginx/ \
13+
source /tmp/rhel_license \
1414
&& rpm --import https://nginx.org/keys/nginx_signing.key \
1515
&& MINOR_VERSION=$(echo ${NGINX_VERSION} | cut -d '.' -f 2) \
1616
&& if [ $(( $MINOR_VERSION % 2)) -eq 0 ]; then echo mainline=""; else mainline="mainline/"; fi \

0 commit comments

Comments
 (0)