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:
Keannu Christian Bernasol 2024-01-07 02:28:14 +08:00
parent 0af8efa793
commit b0b1f4db86
24 changed files with 1253 additions and 292 deletions

View file

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