From 5efe3e5586d221892be46f29a9642cca78eb7270 Mon Sep 17 00:00:00 2001 From: William Petit Date: Tue, 18 Feb 2020 14:45:13 +0100 Subject: [PATCH] Frontend: correction first start --- misc/containers/frontend/docker-entrypoint.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/misc/containers/frontend/docker-entrypoint.sh b/misc/containers/frontend/docker-entrypoint.sh index 03e87d4..57c01c2 100644 --- a/misc/containers/frontend/docker-entrypoint.sh +++ b/misc/containers/frontend/docker-entrypoint.sh @@ -1,3 +1,13 @@ #!/bin/sh +FIRST_RUN_FLAG_FILE="/.first-run" + +if [ ! -e "$FIRST_RUN_FLAG_FILE" ]; then + echo "Installing dependencies. Please wait..." + npm install + + touch "$FIRST_RUN_FLAG_FILE" +fi + + npm start -- --host 0.0.0.0 --port 8000 \ No newline at end of file