ARG NGINX_VERSION=${NGINX_VERSION}
FROM --platform=$TARGETPLATFORM docker.jfrog.io/nginx:${NGINX_VERSION}

COPY Dockerfile /docker/art-nginx/

RUN apk --no-cache add shadow && \
    apk --no-cache add libcap && \
    apk --no-cache add supercronic && \
    apk --no-cache add bash && \
    apk --no-cache add logrotate && \
    apk --no-cache add openssl && \
    apk --no-cache add --update busybox-suid && \
    apk --no-cache upgrade curl libcurl apk-tools && \
    apk del nginx-module-xslt nginx-module-image-filter
