Skip to content

Commit

Permalink
Add init-ddb to entrypoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
scossu committed Sep 11, 2024
1 parent d6b7303 commit 7baa734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7baa734

Please sign in to comment.