Skip to content

Commit 3ef0e0c

Browse files
authored
Merge pull request #3 from infocyph/feature/update
updated worker
2 parents 1dd7cf8 + 23486f4 commit 3ef0e0c

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

Dockerfile

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,32 @@ 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"
55
LABEL 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
810
COPY scripts/fcgi-params.sh /usr/local/bin/fcgi_params.sh
911
COPY 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
1014
RUN 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
1433
EXPOSE 80 443
1534
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)