From 958faed1b6c6d683c337ccb112eef46c1d41f178 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Fri, 2 Jul 2021 16:13:42 -0400 Subject: [PATCH] Set user ownership of static build dir --- Dockerfile | 3 +++ docker-compose.yml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e584383..65ba191 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,6 +67,9 @@ COPY app/ app/ COPY run . COPY whoogle.env . +# Allow writing symlinks to build dir +RUN chown 102:102 app/static/build + EXPOSE $EXPOSE_PORT HEALTHCHECK --interval=30s --timeout=5s \ diff --git a/docker-compose.yml b/docker-compose.yml index 3fba776..dbb741b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,6 @@ services: - no-new-privileges cap_drop: - ALL - read_only: true tmpfs: - /config/:size=10M,uid=102,gid=102,mode=1700 - /var/lib/tor/:size=10M,uid=102,gid=102,mode=1700