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 \
|
||||
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" ]
|
Reference in New Issue
Block a user