Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Add migrate command to Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cofob committed Feb 20, 2022
1 parent 997496f commit 43b8ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ HEALTHCHECK CMD curl --fail http://localhost:8080/api/health || exit 1

# Dont run as root!
USER container
CMD gunicorn autodonate.wsgi --bind $SOCKET --threads $THREADS --workers $WORKERS
CMD python3 manage.py migrate && \
gunicorn autodonate.wsgi --bind $SOCKET --threads $THREADS --workers $WORKERS

0 comments on commit 43b8ac9

Please sign in to comment.