-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (37 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
49 lines (37 loc) · 1.19 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
bzip2 \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Create a shared $HOME directory
RUN useradd -m -s /bin/bash -G users babs
WORKDIR /home/babs
ENV HOME="/home/babs"
WORKDIR /
RUN echo "2024.04.11"
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
COPY docker/environment.yml /tmp/environment.yml
ENV MAMBA_ROOT_PREFIX="/opt/conda" \
MAMBA_NO_LOW_SPEED_LIMIT=1 \
PIP_DEFAULT_TIMEOUT=100
RUN micromamba config set extract_threads 1 \
&& micromamba create -vv -y -f /tmp/environment.yml \
&& micromamba clean -y -a
ENV PATH=/opt/conda/envs/babs/bin:$PATH
# Configure the git user name and email
RUN git config --global user.name "CircleCI" \
&& git config --global user.email "circleci@example.com"
# Create toy bids app
RUN mkdir -p /singularity_images \
&& apptainer build \
/singularity_images/simbids_0.0.1.sif \
docker://pennlinc/simbids:0.0.1
# # install BABS
# COPY . $HOME/babs
# WORKDIR $HOME/babs
# RUN pip install .[tests]
# # pytest BABS
# RUN pytest ~/babs