django basic server and connection to postgresql (not with env for now)

This commit is contained in:
tom moron
2024-08-12 22:07:30 +02:00
parent 2a69e41464
commit fab7db4468
9 changed files with 208 additions and 10 deletions

View File

@ -2,9 +2,8 @@ FROM debian:bullseye
RUN apt update && apt upgrade -y
RUN apt install -y python
RUN apt install -y python3-pip
RUN pip3 install django
RUN apt install -y python3 python3-pip postgresql-client
RUN pip3 install django psycopg
RUN mkdir -p /var/www/djangoserver/
@ -16,4 +15,5 @@ RUN chown -R www-data:www-data /var/www/djangoserver/
WORKDIR /var/www/djangoserver
STOPSIGNAL SIGKILL
ENTRYPOINT [ "python", "/var/www/djangoserver/server/main.py" ]
#ENTRYPOINT [ "python3", "/var/www/djangoserver/server/manage.py","runserver" ]
ENTRYPOINT ["sleep","inf"]