Create locks path in Dockerfile

This commit is contained in:
BBaoVanC 2021-12-23 19:21:45 -06:00
parent 953f72da76
commit 181e65bd21
No known key found for this signature in database
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 3 additions and 3 deletions

View File

@ -18,11 +18,11 @@ ENV SSL_CERT_FILE /etc/ssl/cert.pem
COPY static /go/src/github.com/andreimarcu/linx-server/static/ COPY static /go/src/github.com/andreimarcu/linx-server/static/
COPY templates /go/src/github.com/andreimarcu/linx-server/templates/ COPY templates /go/src/github.com/andreimarcu/linx-server/templates/
RUN mkdir -p /data/files && mkdir -p /data/meta && chown -R 65534:65534 /data RUN mkdir -p /data/files && mkdir -p /data/meta && mkdir -p /data/locks && chown -R 65534:65534 /data
VOLUME ["/data/files", "/data/meta"] VOLUME ["/data/files", "/data/meta", "/data/locks"]
EXPOSE 8080 EXPOSE 8080
USER nobody USER nobody
ENTRYPOINT ["/usr/local/bin/linx-server", "-bind=0.0.0.0:8080", "-filespath=/data/files/", "-metapath=/data/meta/"] ENTRYPOINT ["/usr/local/bin/linx-server", "-bind=0.0.0.0:8080", "-filespath=/data/files/", "-metapath=/data/meta/", "-lockspath=/data/locks/"]
CMD ["-sitename=linx", "-allowhotlink"] CMD ["-sitename=linx", "-allowhotlink"]