19 lines
595 B
Plaintext
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
|
|
|