From 472c93d5480cc514ec564fdd64a400ae7f4b2014 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 30 Jul 2024 08:43:11 +0200 Subject: [PATCH] chore: save caddy logs to `caddy.log` --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3e969dd1..636d108d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,4 +57,7 @@ EXPOSE 3000 HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/health || exit 1 # Application startup updated for Caddy -CMD cp -rn /tmp/img/* /opt/app/frontend/public/img && caddy run --config /etc/caddy/Caddyfile & PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js & cd backend && npm run prod \ No newline at end of file +CMD cp -rn /tmp/img/* /opt/app/frontend/public/img && \ + caddy run --config /etc/caddy/Caddyfile 2> caddy.log & \ + PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js & \ + cd backend && npm run prod \ No newline at end of file