arm-gcc-ci/Dockerfile

37 lines
989 B
Docker
Raw Normal View History

2023-09-14 09:59:45 +03:00
FROM debian:stable-slim
2023-09-12 22:53:40 +03:00
2023-09-22 17:35:21 +03:00
ARG VERSION=12.3.1-1.1
RUN ARCH="$(dpkg --print-architecture)" && \
case $ARCH in \
"amd64") \
ARCH_TAG="x64" \
;; \
"arm64") \
ARCH_TAG="arm64" \
;; \
esac && \
# Get nessecary packages
apt-get update && \
2023-09-13 13:16:42 +03:00
apt-get install \
2023-09-14 09:59:45 +03:00
--no-install-recommends \
make \
cmake \
2023-09-22 17:35:21 +03:00
wget \
ca-certificates \
2023-09-13 13:16:42 +03:00
-y && \
2023-09-22 17:35:21 +03:00
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
2023-09-12 22:53:40 +03:00
2023-09-22 17:35:21 +03:00
RUN echo 'export PATH="/workdir/xpack-arm-none-eabi-gcc-'${VERSION}'/bin:$PATH"' >> /etc/bashrc
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
2023-09-12 22:53:40 +03:00
2023-09-22 17:35:21 +03:00
ENTRYPOINT [ "/entrypoint.sh" ]