File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- FROM nginx:mainline- alpine
1+ FROM nginx:alpine
22LABEL org.opencontainers.image.source="https://github.com/infocyph/docker-nginx"
33LABEL org.opencontainers.image.description="NGINX with updated params"
44LABEL org.opencontainers.image.licenses="MIT"
@@ -20,14 +20,15 @@ RUN mkdir -p /etc/share/rootCA /etc/mkcert && \
2020 echo '#!/bin/sh' ; \
2121 echo 'if [ -n "$PS1" ] && [ -z "${BANNER_SHOWN-}" ]; then' ; \
2222 echo ' export BANNER_SHOWN=1' ; \
23- echo ' show-banner "RUNNER (SUPERVISOR)"' ; \
23+ echo " NGINX_VERSION=\$ (nginx -v 2>&1 | sed -n 's|^nginx version: nginx/\( [0-9\. ]*\) .*|\1 |p')" ; \
24+ echo ' show-banner "Nginx ${NGINX_VERSION}"' ; \
2425 echo 'fi' ; \
2526 } > /etc/profile.d/banner-hook.sh && \
2627 chmod +x /etc/profile.d/banner-hook.sh && \
2728 { \
2829 echo 'if [ -n "$PS1" ] && [ -z "${BANNER_SHOWN-}" ]; then' ; \
2930 echo ' export BANNER_SHOWN=1' ; \
30- echo ' show-banner "RUNNER (SUPERVISOR) "' ; \
31+ echo ' show-banner "Nginx ${NGINX_VERSION} "' ; \
3132 echo 'fi' ; \
3233 } >> /root/.bashrc
3334EXPOSE 80 443
You can’t perform that action at this time.
0 commit comments