Add docker build env

This commit is contained in:
Ben V. Brown 2022-09-25 17:55:03 +10:00
parent 7a2cd9ccd7
commit dca862b42a
3 changed files with 21 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:3.16
LABEL maintainer="Ben V. Brown <ralim@ralimtek.com>"
RUN apk add --no-cache gcc-arm-none-eabi newlib-arm-none-eabi make git bash
WORKDIR /src
# Git trust
RUN git config --global --add safe.directory /src
COPY . /src

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3"
services:
builder:
stdin_open: true
tty: true
build:
context: .
command: /bin/bash
volumes:
- ./:/src:Z

2
start_dev.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
docker-compose run --rm builder