@@ -3,13 +3,32 @@ LABEL 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"
55LABEL org.opencontainers.image.authors="infocyph,abmmhasan"
6- RUN apk add --no-cache bash tzdata && \
7- rm -rf /var/cache/apk/*
6+ RUN apk add --no-cache bash tzdata figlet ncurses musl-locales gawk && \
7+ rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
8+ ENV LANG=en_US.UTF-8 \
9+ LC_ALL=en_US.UTF-8
810COPY scripts/fcgi-params.sh /usr/local/bin/fcgi_params.sh
911COPY scripts/proxy-params.sh /usr/local/bin/proxy_params.sh
12+ ADD https://raw.githubusercontent.com/infocyph/Scriptomatic/master/bash/banner.sh /usr/local/bin/show-banner
13+ ADD https://raw.githubusercontent.com/infocyph/Toolset/main/ChromaCat/chromacat /usr/local/bin/chromacat
1014RUN mkdir -p /etc/share/rootCA /etc/mkcert && \
11- chmod +x /usr/local/bin/fcgi_params.sh /usr/local/bin/proxy_params.sh && \
15+ chmod +x /usr/local/bin/fcgi_params.sh /usr/local/bin/proxy_params.sh /usr/local/bin/show-banner /usr/local/bin/chromacat && \
1216 /usr/local/bin/fcgi_params.sh && \
13- /usr/local/bin/proxy_params.sh
17+ /usr/local/bin/proxy_params.sh && \
18+ mkdir -p /etc/profile.d && \
19+ { \
20+ echo '#!/bin/sh' ; \
21+ echo 'if [ -n "$PS1" ] && [ -z "${BANNER_SHOWN-}" ]; then' ; \
22+ echo ' export BANNER_SHOWN=1' ; \
23+ echo ' show-banner "RUNNER (SUPERVISOR)"' ; \
24+ echo 'fi' ; \
25+ } > /etc/profile.d/banner-hook.sh && \
26+ chmod +x /etc/profile.d/banner-hook.sh && \
27+ { \
28+ echo 'if [ -n "$PS1" ] && [ -z "${BANNER_SHOWN-}" ]; then' ; \
29+ echo ' export BANNER_SHOWN=1' ; \
30+ echo ' show-banner "RUNNER (SUPERVISOR)"' ; \
31+ echo 'fi' ; \
32+ } >> /root/.bashrc
1433EXPOSE 80 443
1534CMD ["nginx" , "-g" , "daemon off;" ]
0 commit comments