From 029e8b9f3bb03582f2729a25c9c607a0b3f826fc Mon Sep 17 00:00:00 2001 From: Shaheen Hyder K Date: Fri, 3 Nov 2023 19:28:19 +0530 Subject: [PATCH] changed gunicorn to daphne --- Dockerfile | 1 - entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cde9905c..27690e94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ FROM python:3.10-slim-buster WORKDIR /app ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 -RUN pip install gunicorn RUN mkdir /var/log/mulearnbackend RUN apt-get update -y && apt-get install -y default-libmysqlclient-dev python-dev && apt install build-essential -y COPY ./requirements.txt . diff --git a/entrypoint.sh b/entrypoint.sh index 2d721c6c..a481b3e9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/bash python manage.py collectstatic --noinput -gunicorn --bind 0.0.0.0:8000 mulearnbackend.wsgi \ No newline at end of file +daphne -b 0.0.0.0 -p 8000 mulearnbackend.asgi:application \ No newline at end of file