Fixed arch detection on Alpine

This commit is contained in:
Alexey Pustovalov 2024-02-05 20:03:59 +09:00
parent 8b68831c2e
commit ad32b8d7f2
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ LABEL org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zab
org.opencontainers.image.version="${ZBX_VERSION}"
RUN set -eux && \
ARCH_SUFFIX="$(arch)"; \
ARCH_SUFFIX="$(uname -m)"; \
case "$ARCH_SUFFIX" in \
i686) \
openjdk_packages='openjdk8 openjdk8-jre-base'; \

View File

@ -31,7 +31,7 @@ COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/bin", "/usr/sbi
COPY --from=builder ["/tmp/zabbix-${ZBX_VERSION}/src/zabbix_java/lib", "/usr/sbin/zabbix_java/lib"]
RUN set -eux && \
ARCH_SUFFIX="$(arch)"; \
ARCH_SUFFIX="$(uname -m)"; \
case "$ARCH_SUFFIX" in \
i686) \
openjdk_packages='openjdk8-jre-base'; \