-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (22 loc) · 1.03 KB
/
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
30
31
FROM vnmd/neurodesktop:20230728
USER root
# Update package list and install necessary dependencies
RUN apt-get update -y && \
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
# Add Docker's official GPG key
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
# Add Docker repository
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Update package list again and install Docker
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt install --yes --no-install-recommends && \
apt-get install -y docker-ce python3-pip && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# This step might require a container restart to take effect
RUN usermod -aG docker ${NB_USER}
# Install python requirements
ADD requirements.txt /ais-requirements.txt
RUN pip install -r /ais-requirements.txt
RUN rm /ais-requirements.txt
USER ${NB_USER}
RUN echo "export XNAT4TESTS_HOME=/home/${NB_USER}/xnat4tests" >> ~/.bashrc