From b27c94e5bdce756943635d70aecf244094991de4 Mon Sep 17 00:00:00 2001 From: Rickey Fehr Date: Thu, 11 Sep 2025 12:46:18 -0700 Subject: [PATCH] Add docker support Add docker support via a docker compose file with included instructions. --- README.md | 11 +++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 7e54e5d..ca41fbe 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,17 @@ This **tech-demo/proof of concept** is strictly limited in content to a minimal (D-Pad: Navigation) # **Build Instructions:** +## **-Docker-** +A docker compose file is provided to build this project. + +1.) Install [docker desktop](https://docs.docker.com/compose/install/). + +2.) Open a terminal to this projects directory: +- On **linux** run `UID=$(id -u) GID=$(id -g) docker compose up` +- On **windows** run `docker compose up` + +Docker will build the project and the ROM will be in the same location as step 7 describes below. + ## **-Windows-** Video Tutorial: https://youtu.be/72Zzo1VDYzQ?si=UDmEdbST1Cx1zZV2 ### With `Git` (not required) diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9adc15c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +services: + balatro: + image: devkitpro/devkitarm:latest + working_dir: /balatro + volumes: + - ./:/balatro + user: "${UID-1000}:${GID-1000}" + command: ["sh", "-c", "make -j$(nproc)"]