From fdadf0f4bb9e2fa7360905f551e8451cd564afbf Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 13 Dec 2023 11:01:57 +0530 Subject: [PATCH] Include uwsgi installation in Dockerfile --- dynamicweb2/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dynamicweb2/Dockerfile b/dynamicweb2/Dockerfile index 7ba8cc3..c42ffc8 100644 --- a/dynamicweb2/Dockerfile +++ b/dynamicweb2/Dockerfile @@ -12,6 +12,9 @@ WORKDIR /app COPY ./requirements.txt /app/requirements.txt RUN pip install -r requirements.txt +# Install uwsgi +RUN pip install uwsgi + # Copy the project files into the working directory COPY . /app/ @@ -19,4 +22,4 @@ COPY . /app/ RUN python manage.py collectstatic --noinput # Run uWSGI with Unix socket -CMD ["uwsgi", "--socket", ":8000", "--module", "myapp.wsgi:application"] +CMD ["uwsgi", "--ini", "uwsgi.ini"]