Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
crlf to lf
Browse files Browse the repository at this point in the history
  • Loading branch information
basilelt committed Jun 22, 2024
1 parent d6f0fc7 commit 6753fe3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Docker/Frontend/Django/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ WORKDIR /app/monprojet
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH

CMD ["daphne", "-b", "0.0.0.0", "-p", "80", "monprojet.asgi:application"]
COPY ./Docker-test/Frontend/Django/entrypoint.sh /entrypoint.sh

EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 80
10 changes: 10 additions & 0 deletions Docker/Frontend/Django/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# Check for and apply any database migrations
echo "Checking for and applying database migrations..."
python manage.py makemigrations
python manage.py makemigrations monapp
#python manage.py migrate

# Start the Django server
echo "Starting Django server..."
exec python manage.py runserver 0.0.0.0:80

0 comments on commit 6753fe3

Please sign in to comment.