From 8c092f9eddfe2a2d6f83d0ef53984104554226e6 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Sun, 24 Jan 2021 16:03:01 +0100 Subject: [PATCH] send seafile.log, controller.log and ccnet.log to /dev/stdout --- seafile-server/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/seafile-server/Dockerfile b/seafile-server/Dockerfile index 6876527..6cc548a 100644 --- a/seafile-server/Dockerfile +++ b/seafile-server/Dockerfile @@ -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"]