From b82371250a73037dfbf03d68bf01c89cf78ea1ee Mon Sep 17 00:00:00 2001 From: "Rodrigo D. L" Date: Sat, 21 Apr 2018 13:01:25 -0300 Subject: [PATCH] Fix files and meta permissions When running under docker-compose the volume changes the permissions by default to root but its avoided if the directory where it is mounted is created first with the correct owner. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 60e189d..8f02dcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ RUN set -ex \ && go get github.com/andreimarcu/linx-server \ && apk del .build-deps +RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data + VOLUME ["/data/files", "/data/meta"] EXPOSE 8080