kamilsss655/compile-with-docker.sh

6 lines
312 B
Bash
Raw Normal View History

2023-10-01 19:27:21 +00:00
#!/bin/sh
# first clean images older than 24h, you will run out of disk space one day
docker image prune -a --force --filter "until=24h"
2023-10-01 19:27:21 +00:00
docker build -t uvk5 .
docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp firmware* compiled-firmware/"