From b7c3cf5f786ce9e5fe5cc28b86f8c1b2945f7945 Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 13 Dec 2023 19:58:06 +0530 Subject: [PATCH] Move Dockerfile back to main folder --- dynamicweb2/Dockerfile => Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename dynamicweb2/Dockerfile => Dockerfile (68%) diff --git a/dynamicweb2/Dockerfile b/Dockerfile similarity index 68% rename from dynamicweb2/Dockerfile rename to Dockerfile index c42ffc8..eedc9f1 100644 --- a/dynamicweb2/Dockerfile +++ b/Dockerfile @@ -21,5 +21,12 @@ COPY . /app/ # Collect static files RUN python manage.py collectstatic --noinput +#RUN python manage.py migrate + +RUN ls -al /app + # Run uWSGI with Unix socket -CMD ["uwsgi", "--ini", "uwsgi.ini"] +CMD ["uwsgi", "--chdir", "/app", "--ini", "uwsgi.ini"] + +# Run uWSGI +#CMD ["uwsgi", "--socket", ":8000", "--module", "dynamicweb2.wsgi:application", "--chdir", "/app"]