fix: docker image
This commit is contained in:
+4
-5
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user