Skip to content

Commit

Permalink
update: add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
synchon committed Oct 8, 2024
1 parent 3c0c2ce commit ad95b64
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git/
29 changes: 29 additions & 0 deletions Dockerfile
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 .

0 comments on commit ad95b64

Please sign in to comment.