From b115bb33f266351a3ad4e026d5d8c01ada4ff7cd Mon Sep 17 00:00:00 2001 From: OpCode1300 Date: Wed, 7 Aug 2019 00:10:01 -0400 Subject: [PATCH] Add Dockerfile to build (#252) --- dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 00000000..6864afac --- /dev/null +++ b/dockerfile @@ -0,0 +1,14 @@ +#Download base image. +#The ubuntu:latest tag points to the "latest LTS" +FROM ubuntu:latest +VOLUME /myvol + +RUN apt-get update && \ + apt-get install -y software-properties-common && \ + apt-get install -y apt-transport-https + +# +RUN add-apt-repository ppa:team-gcc-arm-embedded/ppa && apt-get update && apt-get install -y gcc-arm-embedded dfu-util cmake git python python-pip && apt-get -qy autoremove +RUN pip install pyyaml + +CMD git clone https://github.com/furrtek/portapack-havoc.git portapack-havoc && cd portapack-havoc && mkdir build && cd build && cmake .. && make firmware && cp /portapack-havoc/firmware/portapack-h1-havoc.bin /myvol