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.
This commit is contained in:
Rodrigo D. L 2018-04-21 13:01:25 -03:00 committed by GitHub
parent 4fa6423a85
commit b82371250a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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