From 8c3bef88d8456e4781a06d04866667c1532c2530 Mon Sep 17 00:00:00 2001 From: JohannesSetiawan Date: Fri, 17 May 2024 15:28:13 +0700 Subject: [PATCH] [CHORES] Add migrations to Dockerfile. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index ef40427..3a31361 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,5 @@ EXPOSE 5432 HEALTHCHECK --interval=15s --timeout=1s \ CMD curl --fail http://localhost:8000/swagger/ || exit 1 +CMD ["python", "manage.py", "migrate"] CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file