forked from miykael/nipype_tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 1.21 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
32
33
34
35
36
37
38
39
# This Dockerfile is based on the dockerfile 'fmriprep' from the Poldrack
# Lab (https://github.com/poldracklab/fmriprep). The jupyter notebook foundation
# is based on jupyter/docker-stacks's base-notebook.
#
# This means that the same copyrights apply to this Dockerfile, as they do for
# the above mentioned dockerfiles. For more information see:
# https://github.com/miykael/nipype_env
FROM miykael/nipype_level1
MAINTAINER Michael Notter <[email protected]>
#-------------------------
# Your Docker Instructions
#-------------------------
# <-- Change the level above (under FROM) -->
# <-- Put your docker instructions here -->
#------------------------------------------
# Copy Tutorial Notebooks into Docker Image
#------------------------------------------
USER root
COPY index.ipynb /home/$NB_USER/work/index.ipynb
COPY notebooks /home/$NB_USER/work/notebooks
COPY static /home/$NB_USER/work/static
#------------------------------------------------
# Create /output folder and give power to NB_USER
#------------------------------------------------
USER root
RUN mkdir -p /output
RUN chown -R $NB_USER:users /home/$NB_USER && \
chown -R $NB_USER:users /output
# Set default user to NB_USER
USER $NB_USER