From 7baa73433284aa5b760ed8f06317f2c46225ddff Mon Sep 17 00:00:00 2001 From: scossu Date: Wed, 11 Sep 2024 18:18:16 -0400 Subject: [PATCH] Add init-ddb to entrypoint. --- Dockerfile | 2 +- entrypoint.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fc6eace..0ac0db4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ARG WORKROOT "/usr/local/scriptshifter/src" # Copy core application files. WORKDIR ${WORKROOT} -COPY entrypoint.sh uwsgi.ini wsgi.py VERSION ./ +COPY VERSION entrypoint.sh sscli uwsgi.ini wsgi.py ./ COPY scriptshifter ./scriptshifter/ COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt diff --git a/entrypoint.sh b/entrypoint.sh index 7ef24c3..2917bf4 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,6 +12,8 @@ fi host=${TXL_WEBAPP_HOST:-"0.0.0.0"} port=${TXL_WEBAPP_PORT:-"8000"} +./sscli admin init--db + if [ "${FLASK_ENV}" == "development" ]; then exec flask run -h $host -p $port else