Add docker build env
This commit is contained in:
parent
7a2cd9ccd7
commit
dca862b42a
|
@ -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
|
|
@ -0,0 +1,10 @@
|
|||
version: "3"
|
||||
services:
|
||||
builder:
|
||||
stdin_open: true
|
||||
tty: true
|
||||
build:
|
||||
context: .
|
||||
command: /bin/bash
|
||||
volumes:
|
||||
- ./:/src:Z
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker-compose run --rm builder
|
Loading…
Reference in New Issue