22#
33# MIT License
44#
5- # Copyright (c) 2022 The NiPreps Developers
5+ # Copyright (c) The NiPreps Developers
66#
77# Permission is hereby granted, free of charge, to any person obtaining a copy
88# of this software and associated documentation files (the "Software"), to deal
2323# SOFTWARE.
2424
2525# Ubuntu 22.04 LTS - Jammy
26- ARG BASE_IMAGE=ubuntu:jammy-20230308
26+ ARG BASE_IMAGE=ubuntu:jammy-20240125
2727
2828#
2929# Build wheel
@@ -42,7 +42,7 @@ RUN python -m build /src
4242# Utilities for downloading packages
4343FROM ${BASE_IMAGE} as downloader
4444# Bump the date to current to refresh curl/certificates/etc
45- RUN echo "2023.12.12 "
45+ RUN echo "2024.03.08 "
4646RUN apt-get update && \
4747 apt-get install -y --no-install-recommends \
4848 binutils \
@@ -61,7 +61,7 @@ RUN curl -sSL https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/7.3.2/frees
6161# AFNI
6262FROM downloader as afni
6363# Bump the date to current to update AFNI
64- RUN echo "2023.07.20 "
64+ RUN echo "2024.03.08 "
6565RUN mkdir -p /opt/afni-latest \
6666 && curl -fsSL --retry 5 https://afni.nimh.nih.gov/pub/dist/tgz/linux_openmp_64.tgz \
6767 | tar -xz -C /opt/afni-latest --strip-components 1 \
@@ -81,9 +81,16 @@ RUN mkdir -p /opt/afni-latest \
8181
8282# Micromamba
8383FROM downloader as micromamba
84+
85+ # Install a C compiler to build extensions when needed.
86+ # traits<6.4 wheels are not available for Python 3.11+, but build easily.
87+ RUN apt-get update && \
88+ apt-get install -y --no-install-recommends build-essential && \
89+ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
90+
8491WORKDIR /
8592# Bump the date to current to force update micromamba
86- RUN echo "2023.04.05 "
93+ RUN echo "2024.03.08 "
8794RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
8895
8996ENV MAMBA_ROOT_PREFIX="/opt/conda"
0 commit comments