Skip to content

Instantly share code, notes, and snippets.

@andrewshulgin
Created January 10, 2024 02:32
Show Gist options
  • Save andrewshulgin/ac7ac86b87e0491c07561bd3814b3106 to your computer and use it in GitHub Desktop.
Save andrewshulgin/ac7ac86b87e0491c07561bd3814b3106 to your computer and use it in GitHub Desktop.
Docker Compose File for Buildroot
services:
set-permissions:
image: alpine
user: root
volumes:
- buildroot:/mnt/buildroot
command: chown -R 1000:1000 /mnt/buildroot
build:
image: buildroot/base:20211120.1925
volumes:
- ./:/home/br-user
- buildroot:/home/br-user/buildroot
command: make
depends_on:
set-permissions:
condition: service_completed_successfully
volumes:
buildroot:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment