From c4a888c51805457265045ad1871d20616bfeeb4f Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Wed, 29 Mar 2023 23:19:18 +0200
Subject: [PATCH] Fix assets and use nginx entrypoint too

---
 entrypoint.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/entrypoint.sh b/entrypoint.sh
index 639580d9..752b8ece 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -4,7 +4,7 @@ if [ -z "$(ls -A /etc/nginx)" ]; then
     cp -a /etc/nginx-default/* /etc/nginx/
 fi
 
-CONFIG_FILE="/usr/share/nginx/html/assets/env.production.txt"
+CONFIG_FILE="/usr/share/nginx/html/assets/assets/env.production.txt"
 
 VARIABLES=(
   "SENTRY_DSN"
@@ -26,4 +26,7 @@ for VAR_NAME in "${VARIABLES[@]}"; do
   fi
 done
 
+# Tyr to mimic nginx entrypoint
+# https://github.com/nginxinc/docker-nginx/blob/master/Dockerfile-debian.template
+/docker-entrypoint.sh
 exec nginx -g "daemon off;"
-- 
GitLab