send seafile.log, controller.log and ccnet.log to /dev/stdout

This commit is contained in:
Gerrit Gogel 2021-01-24 16:03:01 +01:00
parent 48263df05f
commit 8c092f9edd

View file

@ -31,6 +31,11 @@ COPY scripts /scripts
RUN chmod u+x /scripts/*
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
RUN mkdir -p /opt/seafile/logs &&\
ln -sf /dev/stdout /opt/seafile/logs/seafile.log &&\
ln -sf /dev/stdout /opt/seafile/logs/controller.log &&\
ln -sf /dev/stdout /opt/seafile/logs/ccnet.log
EXPOSE 8080 8082 8001
CMD ["/scripts/start.sh"]