Add docker build env
This commit is contained in:
parent
7a2cd9ccd7
commit
dca862b42a
3 changed files with 21 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
10
docker-compose.yml
Normal 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
2
start_dev.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
docker-compose run --rm builder
|
Loading…
Reference in a new issue