update : 28.12.2023 10:38:46,05

This commit is contained in:
Sabron 2023-12-28 10:38:46 +07:00
parent 1d2f600c15
commit 0bdb481a0a
2 changed files with 8 additions and 2 deletions

View File

@ -23,4 +23,8 @@ RUN pip install -r req.txt
USER cybercode
CMD ["gunicorn","-b","0.0.0.0:8001","repcofkk.wsgi:application"]
COPY ./entrypoint.sh /
ENTRYPOINT ["sh", "/entrypoint.sh"]
#CMD ["gunicorn","-b","0.0.0.0:8001","repcofkk.wsgi:application"]

View File

@ -1,9 +1,11 @@
#!/bin/sh
pip install -r req.txt
python ./manage.py migrate --no-input
python ./manage.py collectstatic --no-input
DJANGO_SUPERUSER_PASSWORD=$SUPER_USER_PASSWORD python ./manage.py createsuperuser --username $SUPER_USER_NAME --email $SUPER_USER_EMAIL --noinput
gunicorn ./repcofkk.wsgi:application --bind 0.0.0.0:8000
#gunicorn ./repcofkk.wsgi:application --bind 0.0.0.0:8000