From 2a5bb7f6bb48e80d8c0cf22fe80af9ecd1ce7428 Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 18 Jul 2022 11:28:24 +0530 Subject: Changing to run server command Django --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 3c91da9e..740cc092 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,12 @@ RUN pip install -r requirements.txt COPY . . -RUN python manage.py collectstatic --noinput +# RUN python manage.py collectstatic --noinput EXPOSE 8080 # replace APP_NAME with module name -CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "thatcomputerscientist.wsgi"] +# CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "thatcomputerscientist.wsgi"] +CMD ["python3", "manage.py", "runserver", ":8080"] + -- cgit v1.2.3