mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2025-04-27 10:11:24 +08:00
Migrate to postgres, add memcache and vastly improve available equipment instance query time from 1min 30 seconds to 12 seconds
This commit is contained in:
parent
0af8efa793
commit
b0b1f4db86
24 changed files with 1253 additions and 292 deletions
11
Dockerfile
11
Dockerfile
|
@ -13,16 +13,7 @@ WORKDIR /code
|
|||
ADD . /code/
|
||||
|
||||
# Install pipenv
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Make migrations
|
||||
RUN python equipment_tracker/manage.py makemigrations
|
||||
|
||||
# Run custom migrate
|
||||
RUN python equipment_tracker/manage.py migrate
|
||||
|
||||
# Generate DRF Spectacular Documentation
|
||||
RUN python equipment_tracker/manage.py spectacular --color --file equipment_tracker/schema.yml
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Expose port 8000 for the web server
|
||||
EXPOSE 8000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue