-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (20 loc) · 825 Bytes
/
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
FROM rafalskolasinski/science:2018.5
LABEL maintainer="Rafal Skolasinski <[email protected]>"
USER root
ENV KWANT_HASH 60f02546
# Install git version of kwant
RUN . activate && \
conda remove --yes kwant tinyarray && \
git clone https://gitlab.kwant-project.org/kwant/kwant.git /tmp/kwant && \
cp /environments/build.conf /tmp/kwant && \
cd /tmp/kwant && git checkout $KWANT_HASH && \
sed -i -e "s:PREFIX:$CONDA_PREFIX:g" build.conf && \
pip install git+https://gitlab.kwant-project.org/kwant/tinyarray.git && \
pip install . && \
rm -rf /tmp/kwant && \
conda clean -tipsy
# Fix permissions (required when following the base image)
RUN fix-permissions $HOME && \
fix-permissions $CONDA_DIR
# Switch back to jovyan to avoid accidental container runs as root
USER $NB_UID