Skip to content

Commit

Permalink
Arm64 images containing amd tini version (#356)
Browse files Browse the repository at this point in the history
* fix: install tini from deb

* fix: change path

* chore: add healthcheck

* chore: remove double spaces
  • Loading branch information
jkoenig134 authored Jan 29, 2025
1 parent 689da29 commit 8dbba9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ RUN .ci/writeBuildInformation.sh

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
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=5 CMD ["node","-e",'require("http").get("http://localhost/health", res => process.exit(res.statusCode === 200 ? 0 : 1))']
LABEL org.opencontainers.image.source="https://github.com/nmshd/connector"

RUN apt-get update && apt-get -qq install -y --no-install-recommends tini && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN mkdir -p /var/log/enmeshed-connector && chown -R node:node /var/log/enmeshed-connector

Expand All @@ -29,9 +31,7 @@ RUN npm ci --omit=dev

COPY --from=builder /usr/app/dist/ dist/

LABEL org.opencontainers.image.source="https://github.com/nmshd/connector"

USER node

ENTRYPOINT ["/usr/local/bin/tini", "--", "node", "/usr/app/dist/index.js"]
ENTRYPOINT ["/usr/bin/tini", "--", "node", "/usr/app/dist/index.js"]
CMD ["start"]

0 comments on commit 8dbba9f

Please sign in to comment.