Skip to content

Commit

Permalink
Started dockerizing application
Browse files Browse the repository at this point in the history
  • Loading branch information
adbartni committed Mar 31, 2021
1 parent 9af04c7 commit ac87835
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ nilearn_cache/
__pycache__/
.scratch/
venv/
venv-donut/
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"python.pythonPath": "/home/anacadmin/anaconda3/bin/python"
"python.pythonPath": "venv-donut/bin/python"
}
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM registry.bnac.net/fix

RUN apt update ; apt install -y python3 python3-pip

ADD main.py /opt/fmri_pipeline/main.py
ADD LICENSE /opt/fmri_pipeline/LICENSE
ADD preprocessing /opt/fmri_pipeline/preprocessing
ADD collect_raw_data /opt/fmri_pipeline/collect_raw_data
ADD connectome_analyses /opt/fmri_pipeline/connectome_analyses
ADD README.md /opt/fmri_pipeline/README.md
ADD requirements.txt /opt/fmri_pipeline/requirements.txt

ENV PATH="/opt/fmri_pipeline:${PATH}"

RUN pip3 install wheel
RUN pip3 install -r /opt/fmri_pipeline/requirements.txt
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import begin
import os
Expand Down

0 comments on commit ac87835

Please sign in to comment.