Browse Source

Merge pull request #237 from ScholliYT/patch-1

fix file permissions with arbitrary uids for image
ryjiang 3 years ago
parent
commit
98533c088b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Dockerfile

+ 5 - 1
Dockerfile

@@ -31,5 +31,9 @@ RUN apk add --no-cache bash
 # Make our shell script executable
 # Make our shell script executable
 RUN chmod +x /app/build/env.sh
 RUN chmod +x /app/build/env.sh
 
 
+# Make all files accessible such that the image supports arbitrary  user ids
+RUN chgrp -R 0 /app && \
+    chmod -R g=u /app
+
 # RUN echo -e window.__version="{\"version\":\""$VERSION"\"}" > /app/build/version.js
 # RUN echo -e window.__version="{\"version\":\""$VERSION"\"}" > /app/build/version.js
-CMD [ "/bin/bash", "-c", "/app/build/env.sh && yarn start:prod" ]
+CMD [ "/bin/bash", "-c", "/app/build/env.sh && yarn start:prod" ]