forked from virtualabs/btlejack-firmware-nrf52
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 734 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:18.04 as builder
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends \
software-properties-common && \
add-apt-repository -y ppa:team-gcc-arm-embedded/ppa && \
apt-get update -qq && \
apt-get install -y --no-install-recommends \
git make cmake python3 \
gcc-arm-embedded && \
apt-get autoremove -y && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
# Project sources volume should be mounted at /app
COPY . /opt/microbit-samples
WORKDIR /opt/microbit-samples
RUN python3 build.py
FROM scratch AS export-stage
COPY --from=builder /opt/microbit-samples/MICROBIT.bin .
COPY --from=builder /opt/microbit-samples/MICROBIT.hex .
ENTRYPOINT ["/bin/bash"]