From c57feb5d05feaa6939f88872f75b81c61c49807c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20K=C3=B6nig?= <33655937+jkoenig134@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:34:24 +0100 Subject: [PATCH] NodeJS alpine is causing DNS lookup issues (#354) * use nodejs slim instead of alpine * fix: migrate to debian --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82cde05b..79623f7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,10 @@ COPY src src RUN npm run build RUN .ci/writeBuildInformation.sh -FROM node:23.6.1-alpine -RUN apk add --no-cache tini -RUN apk add libcap && setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/node && apk del libcap +FROM node:23.6.1-slim + +ENV TINI_VERSION=v0.19.0 +ADD --chmod=755 https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/local/bin/tini RUN mkdir -p /var/log/enmeshed-connector && chown -R node:node /var/log/enmeshed-connector @@ -32,5 +33,5 @@ LABEL org.opencontainers.image.source="https://github.com/nmshd/connector" USER node -ENTRYPOINT ["/sbin/tini", "--", "node", "/usr/app/dist/index.js"] +ENTRYPOINT ["/usr/local/bin/tini", "--", "node", "/usr/app/dist/index.js"] CMD ["start"]