You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/Dockerfile
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@ ARG WAF_VERSION=v4
10
10
11
11
12
12
############################################# Base images containing libs for Opentracing and FIPS #############################################
13
-
FROM ghcr.io/nginxinc/k8s-common:nginx-opentracing-1.27.0@sha256:d9f6f930b7bfcc026785aca49fdb96fbecdc517ebbdb893f6393ac78b247c8fb as opentracing-lib
14
-
FROM ghcr.io/nginxinc/k8s-common:nginx-opentracing-1.27.0-alpine@sha256:5dc5c76384a775316c541995b145d4cef86d529934951319fd127f4d4fdb9ef7 as alpine-opentracing-lib
15
-
FROM ghcr.io/nginxinc/alpine-fips:0.1.0-alpine3.17@sha256:f00b3f266422feaaac7b733b46903bd19eb1cd1caa6991131576f5f767db76f8 as alpine-fips-3.17
16
-
FROM ghcr.io/nginxinc/alpine-fips:0.2.0-alpine3.19@sha256:1744ae3a8e795daf771f3f7df33b83160981545abb1f1597338e2769d06aa1cc as alpine-fips-3.19
13
+
FROM ghcr.io/nginxinc/k8s-common:nginx-opentracing-1.27.0@sha256:d9f6f930b7bfcc026785aca49fdb96fbecdc517ebbdb893f6393ac78b247c8fb AS opentracing-lib
14
+
FROM ghcr.io/nginxinc/k8s-common:nginx-opentracing-1.27.0-alpine@sha256:5dc5c76384a775316c541995b145d4cef86d529934951319fd127f4d4fdb9ef7 AS alpine-opentracing-lib
15
+
FROM ghcr.io/nginxinc/alpine-fips:0.1.0-alpine3.17@sha256:f00b3f266422feaaac7b733b46903bd19eb1cd1caa6991131576f5f767db76f8 AS alpine-fips-3.17
16
+
FROM ghcr.io/nginxinc/alpine-fips:0.2.0-alpine3.19@sha256:1744ae3a8e795daf771f3f7df33b83160981545abb1f1597338e2769d06aa1cc AS alpine-fips-3.19
17
17
FROM redhat/ubi9-minimal@sha256:a7d837b00520a32502ada85ae339e33510cdfdbc8d2ddf460cc838e12ec5fa5a AS ubi-minimal
18
-
FROM golang:1.22-alpine@sha256:32c85006b1edf29c097514e0c81a33334aa1450685a885c10657ec756dbb7703 as golang-builder
18
+
FROM golang:1.22-alpine@sha256:32c85006b1edf29c097514e0c81a33334aa1450685a885c10657ec756dbb7703 AS golang-builder
19
19
20
20
21
21
############################################# Base image for Alpine #############################################
############################################# Base image for Alpine with NGINX Plus #############################################
115
-
FROM alpine:3.19@sha256:af4785ccdbcd5cde71bfd5b93eabd34250b98651f19fe218c91de6c8d10e21c5 as alpine-plus
115
+
FROM alpine:3.19@sha256:af4785ccdbcd5cde71bfd5b93eabd34250b98651f19fe218c91de6c8d10e21c5 AS alpine-plus
116
116
ARG NGINX_PLUS_VERSION
117
117
118
118
ENV NGINX_VERSION=${NGINX_PLUS_VERSION}
@@ -131,7 +131,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
131
131
132
132
133
133
############################################# Base image for Alpine with NGINX Plus and FIPS #############################################
134
-
FROM alpine-plus as alpine-plus-fips
134
+
FROM alpine-plus AS alpine-plus-fips
135
135
ARG NGINX_PLUS_VERSION
136
136
137
137
ENV NGINX_VERSION=${NGINX_PLUS_VERSION}
@@ -144,7 +144,7 @@ RUN --mount=type=bind,from=alpine-fips-3.19,target=/tmp/fips/ \
144
144
145
145
146
146
############################################# Base image for Alpine with NGINX Plus, App Protect WAF and FIPS #############################################
147
-
FROM alpine:3.17@sha256:a6063e988bcd597b4f1f7cfd4ec38402b02edd0c79250f00c9e14dc1e94bebbc as alpine-plus-nap-fips
147
+
FROM alpine:3.17@sha256:a6063e988bcd597b4f1f7cfd4ec38402b02edd0c79250f00c9e14dc1e94bebbc AS alpine-plus-nap-fips
148
148
ARG NGINX_PLUS_VERSION
149
149
ARG NGINX_AGENT
150
150
ARG NGINX_PLUS_VERSION
@@ -180,7 +180,7 @@ RUN --mount=type=bind,from=alpine-fips-3.17,target=/tmp/fips/ \
180
180
181
181
182
182
############################################# Base image for Alpine with NGINX Plus, App Protect WAFv5 and FIPS #############################################
183
-
FROM alpine:3.17@sha256:a6063e988bcd597b4f1f7cfd4ec38402b02edd0c79250f00c9e14dc1e94bebbc as alpine-plus-nap-v5-fips
183
+
FROM alpine:3.17@sha256:a6063e988bcd597b4f1f7cfd4ec38402b02edd0c79250f00c9e14dc1e94bebbc AS alpine-plus-nap-v5-fips
184
184
ARG NGINX_PLUS_VERSION
185
185
ARG NGINX_AGENT
186
186
ARG NGINX_PLUS_VERSION
@@ -242,7 +242,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
242
242
243
243
244
244
############################################# Base image for Debian with NGINX Plus and App Protect WAF/DoS #############################################
245
-
FROM debian-plus as debian-plus-nap
245
+
FROM debian-plus AS debian-plus-nap
246
246
ARG NAP_MODULES
247
247
ARG NGINX_AGENT
248
248
ARG NGINX_PLUS_VERSION
@@ -286,7 +286,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
286
286
&& if [ -z "${NAP_MODULES##*dos*}" ]; then nap-dos.sh; fi
287
287
288
288
############################################# Base image for Debian with NGINX Plus and App Protect WAFv5/DoS #############################################
289
-
FROM debian-plus as debian-plus-nap-v5
289
+
FROM debian-plus AS debian-plus-nap-v5
290
290
ARG NAP_MODULES
291
291
ARG NGINX_AGENT
292
292
ARG NGINX_PLUS_VERSION
@@ -338,7 +338,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
338
338
339
339
340
340
############################################# Base image for UBI with NGINX Plus and App Protect WAF #############################################
341
-
FROM ubi-minimal as ubi-9-plus-nap
341
+
FROM ubi-minimal AS ubi-9-plus-nap
342
342
ARG NAP_MODULES
343
343
ARG NGINX_AGENT
344
344
ARG NGINX_PLUS_VERSION
@@ -382,7 +382,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
382
382
383
383
384
384
############################################# Base image for UBI with NGINX Plus and App Protect WAFv5 #############################################
385
-
FROM ubi-minimal as ubi-9-plus-nap-v5
385
+
FROM ubi-minimal AS ubi-9-plus-nap-v5
386
386
ARG NAP_MODULES
387
387
ARG NGINX_AGENT
388
388
ARG NGINX_PLUS_VERSION
@@ -427,7 +427,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
427
427
428
428
429
429
############################################# Base image for UBI with NGINX Plus and App Protect WAF & DoS #############################################
430
-
FROM redhat/ubi8@sha256:143123d85045df426c5bbafc6863659880ebe276eb02c77ee868b88d08dbd05d as ubi-8-plus-nap
430
+
FROM redhat/ubi8@sha256:143123d85045df426c5bbafc6863659880ebe276eb02c77ee868b88d08dbd05d AS ubi-8-plus-nap
431
431
ARG NAP_MODULES
432
432
ARG NGINX_AGENT
433
433
ARG NGINX_PLUS_VERSION
@@ -491,7 +491,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
491
491
492
492
493
493
############################################# Base image for UBI with NGINX Plus and App Protect WAFv5 #############################################
494
-
FROM redhat/ubi8@sha256:143123d85045df426c5bbafc6863659880ebe276eb02c77ee868b88d08dbd05d as ubi-8-plus-nap-v5
494
+
FROM redhat/ubi8@sha256:143123d85045df426c5bbafc6863659880ebe276eb02c77ee868b88d08dbd05d AS ubi-8-plus-nap-v5
495
495
ARG NAP_MODULES
496
496
ARG NGINX_AGENT
497
497
ARG NGINX_PLUS_VERSION
@@ -539,7 +539,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
539
539
540
540
541
541
############################################# Create common files, permissions and setcap #############################################
542
-
FROM ${BUILD_OS} as common
542
+
FROM ${BUILD_OS} AS common
543
543
544
544
ARG BUILD_OS
545
545
ARG IC_VERSION
@@ -773,9 +773,9 @@ USER 101
773
773
774
774
775
775
############################################# Create image with nginx-ingress extracted from image on Docker Hub #############################################
0 commit comments