Browse Source

Correção no docker-file conforme instrução da COTIN

pull/159/head
Sesostris Vieira 2 years ago
parent
commit
28e3810e99
  1. 8
      docker/Dockerfile

8
docker/Dockerfile

@ -81,9 +81,6 @@ RUN echo $'\n\n'SECRET_KEY=`python manage.py generate_secret_key` >> ${HOME}/sig
# Prepare run script to start application server # Prepare run script to start application server
RUN chmod +x ${HOME}/bin/run_sigi RUN chmod +x ${HOME}/bin/run_sigi
# Data migration
RUN python manage.py migrate
# Static files # Static files
RUN python manage.py collectstatic --noinput --clear RUN python manage.py collectstatic --noinput --clear
@ -97,4 +94,9 @@ EXPOSE 80/tcp 443/tcp
ENV DEBIAN_FRONTEND=teletype ENV DEBIAN_FRONTEND=teletype
VOLUME ["/srv/interlegis/sigi/media"] VOLUME ["/srv/interlegis/sigi/media"]
# Data migration
RUN python manage.py migrate
# Start web server
CMD service nginx start && /srv/interlegis/sigi/bin/run_sigi CMD service nginx start && /srv/interlegis/sigi/bin/run_sigi
Loading…
Cancel
Save