From f3f6af00b3bc4d496cec0a1b893af19db330b188 Mon Sep 17 00:00:00 2001 From: Sergey <61871201+SergeyLadanov@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:30:23 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e5c147..cf6a3e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ FROM debian:stable-slim -ARG VERSION=12.3.1-1.1 +ARG VERSION=12.3.rel1 RUN ARCH="$(dpkg --print-architecture)" && \ case $ARCH in \ "amd64") \ - ARCH_TAG="x64" \ + ARCH_TAG="x86_64" \ ;; \ "arm64") \ - ARCH_TAG="arm64" \ + ARCH_TAG="aarch64" \ ;; \ esac && \ # Get nessecary packages @@ -23,11 +23,13 @@ RUN ARCH="$(dpkg --print-architecture)" && \ rm -rf /var/cache/apt && \ mkdir /workdir && \ cd /workdir && \ - wget https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v${VERSION}/xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \ - tar xvf xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \ - rm xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz + wget https://developer.arm.com/-/media/Files/downloads/gnu/${VERSION}/binrel/arm-gnu-toolchain-${VERSION}-${ARCH_TAG}-arm-none-eabi.tar.xz \ + tar xvf arm-gnu-toolchain-${VERSION}-${ARCH_TAG}-arm-none-eabi.tar.xz && \ + #wget https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v${VERSION}/xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \ + #tar xvf xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \ + rm arm-gnu-toolchain-${VERSION}-${ARCH_TAG}-arm-none-eabi.tar.xz -RUN echo 'export PATH="/workdir/xpack-arm-none-eabi-gcc-'${VERSION}'/bin:$PATH"' >> /etc/bashrc +RUN echo 'export PATH="/workdir/xarm-gnu-toolchain-'${VERSION}'-'${ARCH_TAG}'-arm-none-eabi/bin:$PATH"' >> /etc/bashrc ADD entrypoint.sh /entrypoint.sh