Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions images/ig-publisher/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ RUN apt-get update && apt-get -y install curl git openssl wget graphviz ruby rub
WORKDIR /tmp

# Set platform-specific variables
RUN if [ -z "$NODE_DISTRO" ]; then \
if [ "$(uname -m)" = "x86_64" ]; then \
NODE_DISTRO=linux-x64; \
elif [ "$(uname -m)" = "arm64" ]; then \
NODE_DISTRO=darwin-arm64; \
else \
echo "Unsupported architecture"; \
exit 1; \
fi; \
fi;\
ARG TARGETARCH

RUN if [ "$TARGETARCH" = "amd64" ]; then \
NODE_DISTRO=linux-x64; \
elif [ "$TARGETARCH" = "arm64" ]; then \
NODE_DISTRO=linux-arm64; \
else \
echo "Unsupported architecture"; \
exit 1; \
fi; \
echo "DOWNLOAD https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz" && \
wget --quiet https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz && \
tar --strip-components 1 -xf node-${NODE_VERSION}-${NODE_DISTRO}.tar.gz -C /usr/local && \
Expand Down