Add Dockerfile to build (#252)

This commit is contained in:
OpCode1300 2019-08-07 00:10:01 -04:00 committed by Furrtek
parent 30db22828c
commit b115bb33f2

14
dockerfile Normal file
View File

@ -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