mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2025-04-27 10:11:24 +08:00
Update deployment related files
This commit is contained in:
parent
ad295a0e6d
commit
fefc3aae38
14 changed files with 72 additions and 1373 deletions
|
@ -15,7 +15,7 @@ WORKDIR /code
|
|||
ADD . /code/
|
||||
|
||||
# Install pipenv
|
||||
RUN pip install --no-cache-dir -r linux-requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Make migrations
|
||||
RUN python equipment_tracker/manage.py makemigrations
|
||||
|
@ -24,7 +24,7 @@ RUN python equipment_tracker/manage.py makemigrations
|
|||
RUN python equipment_tracker/manage.py migrate
|
||||
|
||||
# Generate DRF Spectacular Documentation
|
||||
RUN python equipment_tracker/manage.py spectacular --color --file stude/schema.yml
|
||||
RUN python equipment_tracker/manage.py spectacular --color --file equipment_tracker/schema.yml
|
||||
|
||||
# Expose port 8000 for the web server
|
||||
EXPOSE 8000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue