mirror of
https://github.com/embedd-actions/arm-gcc-ci.git
synced 2024-12-26 00:42:22 +03:00
Update Dockerfile
This commit is contained in:
parent
f3db00c7c6
commit
f3f6af00b3
16
Dockerfile
16
Dockerfile
@ -1,14 +1,14 @@
|
|||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
|
|
||||||
ARG VERSION=12.3.1-1.1
|
ARG VERSION=12.3.rel1
|
||||||
|
|
||||||
RUN ARCH="$(dpkg --print-architecture)" && \
|
RUN ARCH="$(dpkg --print-architecture)" && \
|
||||||
case $ARCH in \
|
case $ARCH in \
|
||||||
"amd64") \
|
"amd64") \
|
||||||
ARCH_TAG="x64" \
|
ARCH_TAG="x86_64" \
|
||||||
;; \
|
;; \
|
||||||
"arm64") \
|
"arm64") \
|
||||||
ARCH_TAG="arm64" \
|
ARCH_TAG="aarch64" \
|
||||||
;; \
|
;; \
|
||||||
esac && \
|
esac && \
|
||||||
# Get nessecary packages
|
# Get nessecary packages
|
||||||
@ -23,11 +23,13 @@ RUN ARCH="$(dpkg --print-architecture)" && \
|
|||||||
rm -rf /var/cache/apt && \
|
rm -rf /var/cache/apt && \
|
||||||
mkdir /workdir && \
|
mkdir /workdir && \
|
||||||
cd /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 && \
|
wget https://developer.arm.com/-/media/Files/downloads/gnu/${VERSION}/binrel/arm-gnu-toolchain-${VERSION}-${ARCH_TAG}-arm-none-eabi.tar.xz \
|
||||||
tar xvf xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz && \
|
tar xvf arm-gnu-toolchain-${VERSION}-${ARCH_TAG}-arm-none-eabi.tar.xz && \
|
||||||
rm xpack-arm-none-eabi-gcc-${VERSION}-linux-${ARCH_TAG}.tar.gz
|
#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
|
ADD entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user