Added drf spectacular documentation generation to Dockerfile

This commit is contained in:
Keannu Bernasol 2023-09-25 21:04:27 +08:00
parent b059c5f1cd
commit 771300f933

View file

@ -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