Fix package conflict by removing curl dependency
All checks were successful
Cloud Node Container / Build-and-Push (18) (push) Successful in 49s
Cloud Node Container / Build-and-Push (20) (push) Successful in 54s
Cloud Node Container / Build-and-Push (22) (push) Successful in 1m12s

- Remove curl from package installation to avoid curl/curl-minimal conflict
- Replace curl with wget in health check and Node.js installation scripts
- wget is already installed and provides same functionality

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-21 16:05:37 -07:00
parent 0b99f5f011
commit e9d4d11177
4 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ ARG NODEVER=20
RUN 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 curl && \
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/*
@@ -35,6 +35,6 @@ COPY ./configs/ecosystem.config.js /var/www/html/
RUN echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
CMD curl -f http://localhost:3000/ping || exit 1
CMD wget --spider -q http://localhost:3000/ping || exit 1
ENTRYPOINT [ "/scripts/entrypoint.sh" ]

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
wget -qO- https://rpm.nodesource.com/setup_18.x | bash -
dnf install -y nodejs
npm install -g npm@latest
node --version

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
wget -qO- https://rpm.nodesource.com/setup_20.x | bash -
dnf install -y nodejs
npm install -g npm@latest
node --version

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
curl -fsSL https://rpm.nodesource.com/setup_22.x | bash -
wget -qO- https://rpm.nodesource.com/setup_22.x | bash -
dnf install -y nodejs
npm install -g npm@latest
node --version