Fix package conflict by removing curl dependency
- 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:
@@ -5,7 +5,7 @@ ARG NODEVER=20
|
|||||||
RUN dnf install -y \
|
RUN dnf install -y \
|
||||||
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
|
||||||
dnf update -y && \
|
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 && \
|
dnf clean all && \
|
||||||
rm -rf /var/cache/dnf /usr/share/doc /usr/share/man /usr/share/locale/* \
|
rm -rf /var/cache/dnf /usr/share/doc /usr/share/man /usr/share/locale/* \
|
||||||
/var/cache/yum /tmp/* /var/tmp/*
|
/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
|
RUN echo "15 */12 * * * root /scripts/log-rotate.sh" >> /etc/crontab
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
|
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" ]
|
ENTRYPOINT [ "/scripts/entrypoint.sh" ]
|
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
dnf install -y nodejs
|
||||||
npm install -g npm@latest
|
npm install -g npm@latest
|
||||||
node --version
|
node --version
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
dnf install -y nodejs
|
||||||
npm install -g npm@latest
|
npm install -g npm@latest
|
||||||
node --version
|
node --version
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
dnf install -y nodejs
|
||||||
npm install -g npm@latest
|
npm install -g npm@latest
|
||||||
node --version
|
node --version
|
||||||
|
Reference in New Issue
Block a user