Move Dockerfile back to main folder

This commit is contained in:
PCoder 2023-12-13 19:58:06 +05:30
parent 9f6a66828b
commit b7c3cf5f78
1 changed files with 8 additions and 1 deletions

View File

@ -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"]