From a24fb3465298081df22ec3dae9e5c2ec0ad084ce Mon Sep 17 00:00:00 2001 From: mirusu400 Date: Thu, 27 Nov 2025 15:44:55 +0900 Subject: [PATCH] chore: add Docker support --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d77a770 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +# ----------------------------------------------------------------------------- +# Dockerfile for building pico-loader (with .NET 9.0) +# ----------------------------------------------------------------------------- + +FROM --platform=linux/amd64 skylyrac/blocksds:dev-latest + +WORKDIR /workdir + +RUN apt-get update && apt-get install -y \ + git \ + make \ + wget \ + ca-certificates \ + && rm -rf /var/lib/apt/lists/* + +RUN wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ + && dpkg -i packages-microsoft-prod.deb \ + && rm packages-microsoft-prod.deb \ + && apt-get update \ + && apt-get install -y dotnet-sdk-9.0 \ + && rm -rf /var/lib/apt/lists/* + +ENV TARGET_PLATFORM=DSPICO + +COPY . . + +CMD ["sh", "-c", "make clean && make PICO_PLATFORM=${TARGET_PLATFORM}"] \ No newline at end of file