Skip to content

Commit 05c0bd3

Browse files
authored
chore: Image builder demo updates (#14)
1 parent 262b00a commit 05c0bd3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: NGINX-Docker-Image-Builder/Dockerfile.oss

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ RUN chmod +x /deployment/start.sh && touch /.dockerenv
3131
EXPOSE 80
3232
STOPSIGNAL SIGTERM
3333

34-
CMD /deployment/start.sh
34+
CMD ["/deployment/start.sh"]

Diff for: NGINX-Docker-Image-Builder/Dockerfile.plus

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ RUN chmod +x /deployment/start.sh && touch /.dockerenv
4646
EXPOSE 80
4747
STOPSIGNAL SIGTERM
4848

49-
CMD /deployment/start.sh
49+
CMD ["/deployment/start.sh"]

Diff for: NGINX-Docker-Image-Builder/scripts/build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ fi
8787
if ([ ! -z "${NAP_WAF}" ] && [ -z "${NGINX_OSS}" ])
8888
then
8989
echo "=> Building with NGINX App Protect WAF"
90+
OPT_PLATFORM="--platform linux/amd64" # for NGINX App Protect WAF, which is only available for x86_64
9091
fi
9192

9293
if [ -z "${NGINX_OSS}" ]
@@ -103,6 +104,7 @@ then
103104
DOCKER_BUILDKIT=1 docker build --no-cache -f $DOCKERFILE_NAME \
104105
--secret id=nginx-key,src=$NGINX_KEY --secret id=nginx-crt,src=$NGINX_CERT \
105106
--build-arg NAP_WAF=$NAP_WAF --build-arg NGINX_AGENT=$NGINX_AGENT \
107+
$OPT_PLATFORM \
106108
-t $IMAGENAME .
107109
else
108110
echo "=> Building with NGINX Open Source"

0 commit comments

Comments
 (0)