cnc (sha256:55068328e7f75f2e40527670ecea581454c6e99128981c7a70ea95515150f7bc)
Published 2025-07-21 23:07:26 +00:00 by whp-cicd-user in cloud-hosting-platform/cloud-nginx-container
Installation
docker pull repo.anhonesthost.net/cloud-hosting-platform/cnc@sha256:55068328e7f75f2e40527670ecea581454c6e99128981c7a70ea95515150f7bc
sha256:55068328e7f75f2e40527670ecea581454c6e99128981c7a70ea95515150f7bc
Image Layers
COPY / / # buildkit |
ENV LANG=C.utf8 |
CMD ["/bin/bash"] |
ARG NODEVER=20 |
RUN |1 NODEVER=20 /bin/sh -c dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && dnf update -y && dnf install -y wget procps cronie iproute nginx openssl && dnf clean all && rm -rf /var/cache/dnf /usr/share/doc /usr/share/man /usr/share/locale/* /var/cache/yum /tmp/* /var/tmp/* # buildkit |
COPY ./scripts/ /scripts/ # buildkit |
RUN |1 NODEVER=20 /bin/sh -c chmod +x /scripts/* # buildkit |
RUN |1 NODEVER=20 /bin/sh -c openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/private/localhost.key -x509 -days 3650 -subj "/CN=localhost" -out /etc/pki/tls/certs/localhost.crt && mkdir -p /var/log/nodejs && /scripts/install-node$NODEVER.sh && rm -rf /tmp/* # buildkit |
RUN |1 NODEVER=20 /bin/sh -c npm install -g pm2@latest --production && npm cache clean --force && rm -rf /tmp/* # buildkit |
COPY ./configs/nginx.conf /etc/nginx/nginx.conf # buildkit |
COPY ./configs/index.js /var/www/html/ # buildkit |
COPY ./configs/package.json /var/www/html/ # buildkit |
COPY ./configs/ecosystem.config.js /var/www/html/ # buildkit |
RUN |1 NODEVER=20 /bin/sh -c echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab # buildkit |
HEALTHCHECK &{["CMD-SHELL" "wget --spider -q http://localhost:3000/ping || exit 1"] "30s" "5s" "1m0s" "0s" '\x03'} |
ENTRYPOINT ["/scripts/entrypoint.sh"] |