Skip to content

Commit eccaba1

Browse files
authored
Updated Dockerfile for Binder (#123)
2 parents 80d2e9c + 9c950d2 commit eccaba1

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

binder/Dockerfile

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
FROM movesrwth/stormpy:1.7.0
1+
FROM movesrwth/stormpy:1.8.0
22
MAINTAINER Matthias Volk <[email protected]>
33

44

55
##########
66
# Create user
77
##########
88

9+
# Ubuntu base image already uses UID/GID 1000
10+
# Change it so the Binder user can use 1000
11+
RUN usermod -u 1001 ubuntu
12+
RUN groupmod -g 1001 ubuntu
13+
914
ARG NB_USER=jovyan
1015
ARG NB_UID=1000
1116
ENV USER ${NB_USER}
@@ -17,16 +22,24 @@ RUN adduser --disabled-password \
1722
--uid ${NB_UID} \
1823
${NB_USER}
1924

25+
# Change the owner of the virtual environment
26+
WORKDIR /opt
27+
USER root
28+
RUN chown -R ${NB_UID} venv
29+
USER ${NB_USER}
2030

2131
##########
2232
# Install dependencies
2333
##########
2434

2535
# Jupyter notebook and Jupyterlab
26-
RUN pip install --no-cache-dir notebook==6.4.12
27-
RUN pip install --no-cache-dir jupyterlab==3.4.4
36+
RUN pip install --no-cache-dir notebook==6.5.4
37+
RUN pip install --no-cache-dir jupyterlab==4.0.2
38+
# Use older version of jupyter-server to avoid issue with token
39+
# see https://github.com/jupyter/notebook/issues/6702#issuecomment-1412832225
40+
RUN pip install --no-cache-dir jupyter-server==1.24.0
2841
# Dependencies for stormpy
29-
RUN pip install --no-cache-dir numpy==1.23.1
42+
RUN pip install --no-cache-dir numpy==1.24.3
3043

3144
##########
3245
# Prepare files for notebooks

0 commit comments

Comments
 (0)