Skip to content

Commit d916ecb

Browse files
authored
Merge pull request #4 from infocyph/feature/update
updated worker
2 parents 3ef0e0c + f845449 commit d916ecb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:mainline-alpine
1+
FROM nginx:alpine
22
LABEL org.opencontainers.image.source="https://github.com/infocyph/docker-nginx"
33
LABEL org.opencontainers.image.description="NGINX with updated params"
44
LABEL 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
3334
EXPOSE 80 443

0 commit comments

Comments
 (0)