From 9c89a9e9cc9cc5358520deb8916b3efd64201142 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Wed, 26 Oct 2022 16:51:37 +0200
Subject: [PATCH] Make configurable

---
 Dockerfile    | 2 ++
 entrypoint.sh | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index f5a01e9..d95a065 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,4 +4,6 @@ RUN apt-get update && apt-get -y install nodejs
 COPY . /app 
 WORKDIR /app
 RUN bundle install
+ENV ENV developpement
+ENV IP 0.0.0.0
 ENTRYPOINT /app/entrypoint.sh
diff --git a/entrypoint.sh b/entrypoint.sh
index f2ceade..593d536 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
 ./bin/rails db:migrate
-./bin/rails server -b 0.0.0.0
+./bin/rails server -e $ENV -b $IP
-- 
GitLab