firmware/stm32/dockerfile.build
2022-05-31 09:57:28 +02:00

19 lines
595 B
Plaintext

# Dockerfile to build tools for building firmware binary
#
# Thanks to <https://github.com/lucaszanella/coldcard-docker> for inspiration.
#
# Also somewhat based on
# <https://blog.feabhas.com/2017/12/introduction-docker-embedded-developers-part-4-reducing-docker-image-size/>
#
FROM alpine:3.16.0
WORKDIR /work
RUN apk add --no-cache git python3 py-pip musl-dev make rsync autoconf automake libtool && \
apk add gcc-arm-none-eabi newlib-arm-none-eabi --update-cache \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/
RUN ln -s /usr/bin/python3 /usr/bin/python