Skip to content

Commit 601267e

Browse files
committed
chore: remove need for requirements.txt
Now that templateflow will auto-sync and pyntcloud has been released as a package on pypi, the requirements.txt file is no longer needed to build the Docker image (which was its unique purpose).
1 parent a112d64 commit 601267e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,18 @@ RUN python -c "from matplotlib import font_manager" && \
147147
sed -i 's/\(backend *: \).*$/\1Agg/g' $( python -c "import matplotlib; print(matplotlib.matplotlib_fname())" )
148148

149149
# Installing dev requirements (packages that are not in pypi)
150-
WORKDIR /src/
151-
COPY requirements.txt requirements.txt
152-
RUN pip install --no-cache-dir -r requirements.txt && \
153-
rm -rf $HOME/.cache/pip requirements.txt
154-
155150
# Precaching atlases
156-
RUN python -c "from templateflow import api as tfapi; \
151+
RUN pip install --no-cache-dir "templateflow >= 0.6" && \
152+
rm -rf $HOME/.cache/pip && \
153+
python -c "from templateflow import api as tfapi; \
157154
tfapi.get(['MNI152Lin', 'MNI152NLin2009cAsym', 'OASIS30ANTs'], suffix='T1w'); \
158155
tfapi.get(['MNI152Lin', 'MNI152NLin2009cAsym', 'OASIS30ANTs'], desc='brain', suffix='mask'); \
159156
tfapi.get(['MNI152NLin2009cAsym'], desc='fMRIPrep', suffix='boldref'); \
160157
tfapi.get('OASIS30ANTs', resolution=1, desc='4', suffix='dseg'); \
161158
tfapi.get(['OASIS30ANTs', 'NKI'], resolution=1, label='brain', suffix='probseg'); \
162159
tfapi.get(['OASIS30ANTs', 'NKI'], resolution=1, desc='BrainCerebellumRegistration', suffix='mask'); "
163160

161+
WORKDIR /src/
164162
COPY . niworkflows/
165163
WORKDIR /src/niworkflows/
166164
RUN pip install --no-cache-dir -e .[all] && \

requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)