From 2507728931a08aeb29cbb7c9e259b860c2d47d49 Mon Sep 17 00:00:00 2001 From: "Felix T.J. Dietrich" Date: Tue, 13 Aug 2024 23:40:30 +0200 Subject: [PATCH] fix coolify --- webapp/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapp/Dockerfile b/webapp/Dockerfile index d12bf087..6b420db2 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -6,6 +6,15 @@ COPY ./ /app/ RUN printenv RUN cat .env +#11 0.081 COOLIFY_URL=ws8008.35.207.83.232.sslip.io +#11 0.081 COOLIFY_BRANCH=chore/configure-server-url +#11 0.081 COOLIFY_CONTAINER_NAME=ws80008-213620030145 +#11 0.081 NG_APPLICATION_SERVER_URL=https://api.$COOLIFY_URL + +RUN COOLIFY_URL_VALUE=$(grep '^COOLIFY_URL=' .env | cut -d '=' -f2) && \ + sed -i "s|\$COOLIFY_URL|$COOLIFY_URL_VALUE|g" .env + +RUN cat .env RUN npm install RUN npm run build