Commit 594f22c4 authored by Romain Loth's avatar Romain Loth

pip requirements earlier in dockerfile saves a lot of time

parent 781a834d
......@@ -23,6 +23,10 @@ RUN sed 's/;clear_env = no/clear_env = no/' /etc/php/7.0/fpm/pool.d/www.conf.bak
RUN pip3 install --upgrade pip
# for comex2 itself ----------------------------------------------------------
# add and install the project dependencies
ADD requirements.txt /requirements.txt
RUN pip3 install -r requirements.txt
# copy and symlink the nginx conf
ADD comex2_php_and_services.nginx.conf /etc/nginx/sites-available
WORKDIR /etc/nginx/sites-enabled
......@@ -34,12 +38,8 @@ WORKDIR /
RUN git clone https://github.com/moma/comex2.git
# ...or copy it locally
# RUN echo updating
# ADD comex2 /comex2
# Install project dependencies
RUN pip3 install -r comex2/setup/requirements.txt
# main CMD to start the app
WORKDIR /comex2
......@@ -55,4 +55,4 @@ CMD bash run.sh
EXPOSE 80
# TODO SSL configuration
# EXPOSE 443
EXPOSE 443
gunicorn
flask
flask-login
requests
mysqlclient # provides MySQLdb
networkx # POSS could be replaced by faster igraph
gunicorn
flask
flask-login
requests
mysqlclient # provides MySQLdb
networkx # POSS could be replaced by faster igraph
dockers/comex2_services/requirements.txt
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment