django basic server and connection to postgresql (not with env for now)
This commit is contained in:
@ -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"]
|
||||
|
Reference in New Issue
Block a user