Skip to content

Commit

Permalink
feat: add ftcli db upgrade to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHenryThoreau authored and DavidHenryThoreau committed May 13, 2024
1 parent f3823f0 commit 3bcd64c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ RUN pip install --upgrade pip
RUN pip install poetry
RUN . $VIRTUAL_ENV/bin/activate && poetry install --no-interaction --quiet

# init database
RUN set -e && cd /usr/src/app && ftcli db upgrade

# run fittrackee server
CMD flask run --with-threads -h 0.0.0.0
CMD flask run --with-threads -h 0.0.0.0

0 comments on commit 3bcd64c

Please sign in to comment.