From 807d3c4355fae7e4ffccf6e5543d8e2eb0b3143f Mon Sep 17 00:00:00 2001
From: Andreas Ellewsen <andreas@ellewsen.no>
Date: Thu, 5 May 2022 14:53:16 +0200
Subject: [PATCH] Support arbitrary UIDs in frontend container

---
 frontend/Containerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/frontend/Containerfile b/frontend/Containerfile
index 19d626d5..c718237e 100644
--- a/frontend/Containerfile
+++ b/frontend/Containerfile
@@ -29,3 +29,7 @@ COPY ./docker-entrypoint.sh /docker-entrypoint.d/90-greg-frontend-env.sh
 
 CMD ["nginx", "-g", "daemon off;"]
 
+# Support arbitrarily assigned UIDs by making the root group
+# the owner of our directory.
+RUN chgrp -R 0 /app && \
+    chmod -R g=u /app
-- 
GitLab