arm-none-eabi.buildenv/Dockerfile

33 lines
789 B
Docker
Raw Normal View History

2020-04-08 02:21:27 +00:00
FROM debian:bullseye-slim
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199 suggests 'mkdir -p /usr/share/man/man1'
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y \
build-essential \
git \
bzip2 \
tar \
wget \
libncurses5 \
&& mkdir -p /usr/share/man/man1 \
&& apt clean \
&& \
wget "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2" -O - | tar -C /usr/local -xjf -
# documentation
COPY README.md /usr/doc/
WORKDIR /work
ENV PATH "/usr/local/gcc-arm-none-eabi-9-2019-q4-major/bin:/usr/local/bin:$PATH"
## usage
# docker run --rm -it buildenv-sensor-adapter /bin/bash
#