junifer/Dockerfile-docs
2025-01-24 14:16:18 +01:00

25 lines
714 B
Text

# syntax=docker/dockerfile:1
FROM debian:bookworm-slim
LABEL org.opencontainers.image.source=https://github.com/juaml/junifer
LABEL org.opencontainers.image.description="Junifer docs CI container image"
LABEL org.opencontainers.image.licenses=AGPL-3.0-only
RUN apt-get update && \
apt-get install -y \
# ANTs runtime stuff
libhdf5-dev \
bc \
&& rm -rf /var/lib/apt/lists/*
# Add xfms
COPY --from=ghcr.io/juaml/human-template-xfms:main /opt/xfms /root/junifer/data/xfms
# Add ANTs
COPY --from=antsx/ants:latest /opt/ants /opt/ants
# Set env vars for ANTs
ENV PATH="/opt/ants/bin:$PATH" \
LD_LIBRARY_PATH="/opt/ants/lib"
# Clean apt cache
RUN apt-get autoremove --purge && apt-get clean