Browse Source

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.
pull/141/head
Rodrigo D. L 7 years ago
committed by GitHub
parent
commit
b82371250a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Dockerfile

2
Dockerfile

@ -5,6 +5,8 @@ RUN set -ex \
&& go get github.com/andreimarcu/linx-server \ && go get github.com/andreimarcu/linx-server \
&& apk del .build-deps && apk del .build-deps
RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data
VOLUME ["/data/files", "/data/meta"] VOLUME ["/data/files", "/data/meta"]
EXPOSE 8080 EXPOSE 8080

Loading…
Cancel
Save