Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
594f22c4
Commit
594f22c4
authored
Jan 12, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pip requirements earlier in dockerfile saves a lot of time
parent
781a834d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
17 deletions
+13
-17
Dockerfile
setup/dockers/comex2_services/Dockerfile
+5
-5
requirements.txt
setup/dockers/comex2_services/requirements.txt
+6
-0
requirements.txt
setup/requirements.txt
+1
-6
requirements.txt
setup/requirements.txt
+1
-6
No files found.
setup/dockers/comex2_services/Dockerfile
View file @
594f22c4
...
...
@@ -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
setup/dockers/comex2_services/requirements.txt
0 → 100644
View file @
594f22c4
gunicorn
flask
flask-login
requests
mysqlclient # provides MySQLdb
networkx # POSS could be replaced by faster igraph
setup/requirements.txt
deleted
100644 → 0
View file @
781a834d
gunicorn
flask
flask-login
requests
mysqlclient # provides MySQLdb
networkx # POSS could be replaced by faster igraph
setup/requirements.txt
0 → 120000
View file @
594f22c4
dockers/comex2_services/requirements.txt
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment