From a0f0e4e35fc0d03104d215924dc851e16e60de38 Mon Sep 17 00:00:00 2001 From: Stefano Alberto Russo <stefano.russo@gmail.com> Date: Mon, 15 Nov 2021 20:00:22 +0100 Subject: [PATCH] Improved Dockerfile build. --- services/webapp/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/services/webapp/Dockerfile b/services/webapp/Dockerfile index 1c0c880..3bdd276 100644 --- a/services/webapp/Dockerfile +++ b/services/webapp/Dockerfile @@ -36,6 +36,14 @@ RUN apt-get install libpq-dev -y # Docker RUN apt-get install docker.io -y +#------------------------------ +# Viz +#------------------------------ +RUN apt install python-pygraphviz graphviz-dev -y +RUN pip3 install django-extensions pygraphviz +# Example usage: rosetta/shell webapp "cd /opt/code && python3 manage.py graph_models core_app --exclude-models LoginToken,Text -o ORM.png" + + #------------------------------ # Install Django project #------------------------------ @@ -63,14 +71,6 @@ COPY db_conf.sh /db_conf.sh RUN mkdir /var/log/webapp/ && chown rosetta:rosetta /var/log/webapp/ -#------------------------------ -# Viz -#------------------------------ -RUN apt install python-pygraphviz graphviz-dev -y -RUN pip3 install django-extensions pygraphviz -# Example usage: rosetta/shell webapp "cd /opt/code && python3 manage.py graph_models core_app --exclude-models LoginToken,Text -o ORM.png" - - #------------------------------ # Supervisord #------------------------------ -- GitLab