Skip to content

Commit ac6c98a

Browse files
committed
set Dockerfile to run migrations in the event there are any migrations to run
1 parent 9240166 commit ac6c98a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chp_api/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ RUN chown -R chp_api:chp_api $APP_HOME \
7070

7171
# change to the app user
7272
USER chp_api
73+
74+
CMD ["sh", "python manage.py migrate"]

0 commit comments

Comments
 (0)