-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 876 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# syntax=docker/dockerfile:1
FROM python:3.12-slim
LABEL org.opencontainers.image.source=https://github.com/juaml/junifer-data
LABEL org.opencontainers.image.description="Junifer data container image"
LABEL org.opencontainers.image.licenses=AGPL-3.0-only
RUN apt-get update && apt-get install -y \
git \
git-annex \
&& rm -rf /var/lib/apt/lists/*
# 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/junifer-data.git /opt/junifer-data && \
cd /opt/junifer-data && \
datalad get .