fix: docker image

This commit is contained in:
2024-05-15 17:37:35 +02:00
parent 5562770912
commit 1c47908627
3 changed files with 5 additions and 8 deletions
+4 -5
View File
@@ -8,11 +8,10 @@ RUN mkdir /code
WORKDIR /code WORKDIR /code
COPY requirements.txt /code COPY requirements.txt /code
RUN apt-get update \ RUN apt-get update && \
&& apt-get install -y build-essential gcc git nginx gettext vim python3-dev libpq-dev \ apt-get install -y git nginx gettext vim && \
&& apt-get purge -y build-essential \ pip install -r requirements.txt && \
&& apt-get autoremove -y && \ apt-get autoremove -y
pip install -r requirements.txt
COPY . /code COPY . /code
+1 -1
View File
@@ -16,7 +16,7 @@ djangorestframework-simplejwt==5.3.0
drf-spectacular==0.26.1 drf-spectacular==0.26.1
ipython==8.16.1 ipython==8.16.1
Pillow==10.0.1 Pillow==10.0.1
psycopg2-binary==2.9.5 psycopg2-binary==2.9.9
pyDes==2.0.1 pyDes==2.0.1
redis==4.5.4 redis==4.5.4
requests==2.31.0 requests==2.31.0
-2
View File
@@ -10,8 +10,6 @@ RUN_CELERY=${RUN_CELERY:="FALSE"}
if [ $RUN_SERVER = "TRUE" ]; then if [ $RUN_SERVER = "TRUE" ]; then
chown -R www-data:www-data static/
python manage.py collectstatic --no-input
service nginx start service nginx start
uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application uvicorn --workers $ASGI_WORKERS --host $ASGI_HOST --port $ASGI_PORT config.asgi:application
elif [ $RUN_CELERY = "TRUE" ]; then elif [ $RUN_CELERY = "TRUE" ]; then