-
Notifications
You must be signed in to change notification settings - Fork 154
feat: update nginx plus image builds to use nginx plus base images #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
FROM nginx:1.29.0@sha256:f5c017fb33c6db484545793ffb67db51cdd7daebee472104612f73a85063f889 | ||
|
||
# NJS env vars | ||
ENV NJS_VERSION=0.9.0 | ||
ENV NJS_RELEASE=1~bookworm | ||
FROM nginx:1.29.1@sha256:d5f28ef21aabddd098f3dbc21fe5b7a7d7a184720bc07da0b6c9b9820e97f25e | ||
|
||
# Proxy cache env vars | ||
ENV PROXY_CACHE_MAX_SIZE=10g | ||
|
@@ -27,20 +23,20 @@ ENV PREFIX_LEADING_DIRECTORY_PATH="" | |
# 3. Adding a directory for proxied objects to be stored. | ||
# 4. Replacing the entrypoint script with a modified version that explicitly sets resolvers. | ||
|
||
# Note: the PKG_RELEASE environment variable is inherited | ||
|
||
RUN set -x \ | ||
&& echo "deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/debian/ $(echo $PKG_RELEASE | cut -f2 -d~) nginx" >> /etc/apt/sources.list.d/nginx.list; \ | ||
apt-get update \ | ||
&& echo "deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/mainline/debian/ $(echo $PKG_RELEASE | cut -f2 -d~) nginx" >> /etc/apt/sources.list.d/nginx.list \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends --no-install-suggests -y \ | ||
libedit2 \ | ||
nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_RELEASE} \ | ||
&& apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list | ||
libedit2 nginx-module-njs nginx-module-xslt \ | ||
&& apt-get remove --purge --auto-remove -y && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY oss/etc /etc | ||
COPY oss/etc/nginx /etc/nginx | ||
COPY common/etc /etc | ||
COPY common/docker-entrypoint.sh /docker-entrypoint.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We no longer need a custom entry point script. |
||
COPY common/docker-entrypoint.d /docker-entrypoint.d/ | ||
|
||
RUN set -x \ | ||
&& mkdir -p /var/cache/nginx/s3_proxy \ | ||
&& chown nginx:nginx /var/cache/nginx/s3_proxy \ | ||
&& chmod -R -v +x /docker-entrypoint.sh /docker-entrypoint.d/*.sh; | ||
&& find /docker-entrypoint.d -type f \( -name '*.sh' -or -name '*.envsh' \) -exec chmod -v +x {} \; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This find command ensures all the files in the entry point directory are executable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer hard-code NJS versions.