Skip to content

Commit

Permalink
Use TARGETARCH, instead of GOARCH
Browse files Browse the repository at this point in the history
  • Loading branch information
lystopad committed Oct 10, 2024
1 parent 8c78ce1 commit efe324d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ FROM ${RELEASE_DOCKER_BASE_IMAGE} AS release
ARG USER=erigon \
GROUP=erigon \
APPLICATION \
TARGETARCH \
EXPOSED_PORTS

STOPSIGNAL 2
Expand All @@ -46,7 +47,7 @@ RUN --mount=type=bind,from=temporary,source=/tmp/${APPLICATION},target=/tmp/${AP
apt install -y --no-install-recommends ca-certificates && \
apt clean && \
rm -rf /var/lib/apt/lists/* && \
if [ "x${GOARCH}" == "xamd64" ]; then \
if [ "x${TARGETARCH}" == "xamd64" ]; then \
echo "Installing libsilkworm_capi.so library to /lib/x86_64-linux-gnu/ in case amd64 architecture:"; \
find /tmp/${APPLICATION} -name libsilkworm_capi.so -type f | xargs -I % install -m a=r -v % /lib/x86_64-linux-gnu/; \
echo "Done." ; \
Expand Down

0 comments on commit efe324d

Please sign in to comment.