From bae5df442ec6aa9457eae274d9a842b4cecf01d8 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 20 Aug 2024 13:26:28 +0200 Subject: [PATCH 1/6] add log --- webapp/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index eadf5da8..8e465dd2 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -6,6 +6,7 @@ COPY ./ /app/ # Ensure .env file exists RUN touch .env +RUN echo "Contents of .env file:" && cat .env # Fix buggy replacement of COOLIFY_URL in .env RUN COOLIFY_URL_VALUE=$(grep '^COOLIFY_URL=' .env | cut -d '=' -f2) && \ From b7e0072d3f63a43b4187b11c8516480bc237a247 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 20 Aug 2024 13:28:36 +0200 Subject: [PATCH 2/6] print env --- webapp/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 8e465dd2..39ea48ff 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -6,6 +6,7 @@ COPY ./ /app/ # Ensure .env file exists RUN touch .env +RUN env RUN echo "Contents of .env file:" && cat .env # Fix buggy replacement of COOLIFY_URL in .env From 2f17dbbe8ac205d85fffdf4728ba28260f98598c Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 20 Aug 2024 13:53:17 +0200 Subject: [PATCH 3/6] add list files --- webapp/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 39ea48ff..07cf22e5 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app COPY ./ /app/ +RUN ls -la # Ensure .env file exists RUN touch .env RUN env From 75b83b45809a22459a33129f621f7cfd5bfc78fe Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 20 Aug 2024 13:56:22 +0200 Subject: [PATCH 4/6] cat env --- webapp/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 07cf22e5..cf80e212 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -5,6 +5,7 @@ WORKDIR /app COPY ./ /app/ RUN ls -la +RUN cat .env* # Ensure .env file exists RUN touch .env RUN env From 5e85b49f479006b3dffb4654375ed2d8c6af7ea3 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 20 Aug 2024 14:00:09 +0200 Subject: [PATCH 5/6] mv file --- webapp/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index cf80e212..9c3d1b17 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -7,8 +7,8 @@ COPY ./ /app/ RUN ls -la RUN cat .env* # Ensure .env file exists +RUN mv .env* .env || true RUN touch .env -RUN env RUN echo "Contents of .env file:" && cat .env # Fix buggy replacement of COOLIFY_URL in .env From 6e5f84a5d9ee7255cb3f9d9e7dc8b70bab406f03 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 20 Aug 2024 14:01:56 +0200 Subject: [PATCH 6/6] fix env --- webapp/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 9c3d1b17..1c53ebc3 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -4,12 +4,10 @@ WORKDIR /app COPY ./ /app/ -RUN ls -la -RUN cat .env* # Ensure .env file exists RUN mv .env* .env || true RUN touch .env -RUN echo "Contents of .env file:" && cat .env +RUN cat .env # Fix buggy replacement of COOLIFY_URL in .env RUN COOLIFY_URL_VALUE=$(grep '^COOLIFY_URL=' .env | cut -d '=' -f2) && \