diff --git a/Dockerfile b/Dockerfile index 0e97577..079f72e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,10 @@ RUN mkdir /code WORKDIR /code COPY requirements.txt /code -RUN apt-get update \ - && apt-get install -y build-essential gcc git nginx gettext vim python3-dev libpq-dev \ - && apt-get purge -y build-essential \ - && apt-get autoremove -y && \ - pip install -r requirements.txt +RUN apt-get update && \ + apt-get install -y git nginx gettext vim && \ + pip install -r requirements.txt && \ + apt-get autoremove -y COPY . /code diff --git a/requirements.txt b/requirements.txt index edb9562..9a72de1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ djangorestframework-simplejwt==5.3.0 drf-spectacular==0.26.1 ipython==8.16.1 Pillow==10.0.1 -psycopg2-binary==2.9.5 +psycopg2-binary==2.9.9 pyDes==2.0.1 redis==4.5.4 requests==2.31.0 diff --git a/scripts/run.sh b/scripts/run.sh index 51e5ee6..829b0ca 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -10,8 +10,6 @@ RUN_CELERY=${RUN_CELERY:="FALSE"} if [ $RUN_SERVER = "TRUE" ]; then - chown -R www-data:www-data static/ - python manage.py collectstatic --no-input service nginx start uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application elif [ $RUN_CELERY = "TRUE" ]; then