-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.12-slim | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/juaml/human-template-xfms | ||
LABEL org.opencontainers.image.description="Human brain templates transformation container image" | ||
LABEL org.opencontainers.image.licenses=AGPL-3.0-only | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
git \ | ||
git-annex | ||
|
||
# Install datalad | ||
RUN --mount=type=cache,target=/cache/pip \ | ||
PIP_CACHE_DIR=/cache/pip \ | ||
python -m pip install datalad | ||
|
||
# Configure git so that datalad doesn't give warnings | ||
RUN git config --global user.email "docker-user@juaml.github.io" && \ | ||
git config --global user.name "Docker User" | ||
|
||
# Clean apt cache | ||
RUN apt-get autoremove --purge && apt-get clean | ||
|
||
# Get all data | ||
RUN datalad clone https://github.com/juaml/human-template-xfms.git /opt/xfms && \ | ||
cd /opt/xfms && \ | ||
datalad get . |