Remove unused files
This commit is contained in:
parent
a529a59e29
commit
2ff10b6de9
|
@ -1,8 +0,0 @@
|
|||
# Python 3.9.6
|
||||
FROM python@sha256:736b76eb3f64778646ce0051fb5fed4dfbf67016e51563946230ca8bb40ac687
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ADD . /code
|
||||
WORKDIR /code
|
||||
RUN pip install wheel
|
||||
RUN pip install -r requirements/docker.txt
|
||||
CMD ["/bin/bash", "/code/run.sh"]
|
30
run.sh
30
run.sh
|
@ -1,30 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ -f .second_run ]; then
|
||||
sleep 2
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
else
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py makemigrations backups
|
||||
python manage.py makemigrations computers
|
||||
python manage.py makemigrations core
|
||||
python manage.py makemigrations customers
|
||||
python manage.py makemigrations devices
|
||||
python manage.py makemigrations licenses
|
||||
python manage.py makemigrations nets
|
||||
python manage.py makemigrations softwares
|
||||
python manage.py makemigrations users
|
||||
python manage.py makemigrations
|
||||
python manage.py migrate
|
||||
python manage.py loaddata backups
|
||||
python manage.py loaddata computers
|
||||
python manage.py loaddata core
|
||||
python manage.py loaddata devices
|
||||
python manage.py loaddata nets
|
||||
python manage.py loaddata softwares
|
||||
python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'password')"
|
||||
touch .second_run
|
||||
fi
|
||||
find . \( -name __pycache__ -o -name "*.pyc" \) -delete
|
||||
gunicorn network_inventory.wsgi:application --reload --bind 0.0.0.0:8000 --workers 3
|
Loading…
Reference in New Issue