From d75fe04431d09de38b524e0ed0727c2a63568bb6 Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Thu, 9 Jan 2025 20:09:53 -0500 Subject: [PATCH] feat: create predefined build related direcroties --- debian/Dockerfile | 6 ++++++ ubuntu/Dockerfile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/debian/Dockerfile b/debian/Dockerfile index a0721b3..4ce307d 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -18,5 +18,11 @@ RUN mkdir -p /home/regolith/.gnupg/ && \ chown -R regolith /home/regolith/.gnupg/ && \ chmod 700 /home/regolith/.gnupg +RUN mkdir -p /build/ && \ + mkdir -p /build/buildlog/ && \ + mkdir -p /build/publish/ && \ + mkdir -p /build/workspace/ && \ + chown -R regolith /build/ + USER regolith WORKDIR /build diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index ab14460..e4056f2 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -19,5 +19,11 @@ RUN mkdir -p /home/regolith/.gnupg/ && \ chown -R regolith /home/regolith/.gnupg/ && \ chmod 700 /home/regolith/.gnupg +RUN mkdir -p /build/ && \ + mkdir -p /build/buildlog/ && \ + mkdir -p /build/publish/ && \ + mkdir -p /build/workspace/ && \ + chown -R regolith /build/ + USER regolith WORKDIR /build