diff --git a/Dockerfile b/Dockerfile index f5a01e972589683da979a837898834c9720f5b07..d95a0658528f821ad93f6cecdf1b0735e03f7381 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 f2ceade395b859197fc20ea23bf8aeb67ab730ee..593d53625656c53622512c62e12e70b189c1f057 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