From 771300f933c773cef00865ae2556bb9c50c30e13 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 25 Sep 2023 21:04:27 +0800 Subject: [PATCH] Added drf spectacular documentation generation to Dockerfile --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index d76416b..f446d4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,5 +37,8 @@ RUN python stude/manage.py makemigrations # Run custom migrate RUN python stude/manage.py custom_migrate +# Generate DRF Spectacular Documentation +RUN python stude/manage.py spectacular --color --file stude/schema.yml + # Expose port 8000 for the web server EXPOSE 8000