Skip to content

Commit

Permalink
fix: remove SHAs from S3 Gateway image
Browse files Browse the repository at this point in the history
  • Loading branch information
alessfg committed May 6, 2024
1 parent 83aea5e commit e3e3901
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.latest-njs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This container image removes the existing njs package from the inherited image
# (which could be OSS NGINX or NGINX Plus), builds njs from the latest
# source, and installs it.
FROM nginxinc/nginx-s3-gateway@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4
FROM nginxinc/nginx-s3-gateway

RUN set -eux \
export DEBIAN_FRONTEND=noninteractive; \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.unprivileged
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# to allow running NGINX S3 Gateway as a non root user.
# Steps are based on the official unprivileged container:
# https://github.com/nginxinc/docker-nginx-unprivileged/blob/main/Dockerfile-debian.template
FROM nginxinc/nginx-s3-gateway@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4
FROM nginxinc/nginx-s3-gateway

# Implement changes required to run NGINX as an unprivileged user
RUN sed -i "/^server {/a \ listen 8080;" /etc/nginx/templates/default.conf.template \
Expand Down
3 changes: 1 addition & 2 deletions examples/brotli-compression/Dockerfile.oss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM nginxinc/nginx-s3-gateway@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4

FROM nginxinc/nginx-s3-gateway
ENV BROTLI_VERSION "v1.0.0rc"

# Build Brotli module from source because there is no repository package
Expand Down
2 changes: 1 addition & 1 deletion examples/gzip-compression/Dockerfile.oss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM nginxinc/nginx-s3-gateway@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4
FROM nginxinc/nginx-s3-gateway

COPY etc/nginx/conf.d /etc/nginx/conf.d
2 changes: 1 addition & 1 deletion examples/modsecurity/Dockerfile.oss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginxinc/nginx-s3-gateway@sha256:8aa48324479b3653b5936183cc97f2ca1aa9078d229042f1bca357834bd906f4
FROM nginxinc/nginx-s3-gateway

ENV MODSECURITY_VERSION "v1.0.1"
ENV OWASP_RULESET_VERSION "v3.3.0"
Expand Down

0 comments on commit e3e3901

Please sign in to comment.