aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker
diff options
context:
space:
mode:
authorAdam Janovsky2022-05-01 19:49:28 +0200
committerAdam Janovsky2022-05-01 19:49:28 +0200
commit8b741dfb768e3a7752c5a4986a42a2eaf92da3b6 (patch)
tree607e780a55c150a394fd4c14770df933248fe972 /docker
parent7cb9ca5d0fb425f4c3ada731cd917846f64a2d59 (diff)
downloadsec-certs-8b741dfb768e3a7752c5a4986a42a2eaf92da3b6.tar.gz
sec-certs-8b741dfb768e3a7752c5a4986a42a2eaf92da3b6.tar.zst
sec-certs-8b741dfb768e3a7752c5a4986a42a2eaf92da3b6.zip
Update dockerfile to adhere with mybinder reqs
- Requirements listed here: https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile9
1 files changed, 7 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 02922496..eaf2d326 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,6 +1,7 @@
-FROM ubuntu:jammy
+FROM ubuntu:jammy-20220428
ENV USER="user"
+ENV NB_UID=1000
ENV HOME /home/${USER}
#installing dependencies
@@ -20,7 +21,10 @@ RUN apt-get install graphviz -y
RUN adduser --disabled-password \
--gecos "Default user" \
+ --uid ${NB_UID} \
${USER}
+
+RUN chown -R ${NB_UID} ${HOME}
USER ${USER}
WORKDIR ${HOME}
@@ -43,7 +47,8 @@ RUN \
pip3 install -U pip && \
pip3 install wheel && \
pip3 install -r requirements/requirements.txt && \
- pip3 install --no-cache notebook jupyterlab
+ pip3 install --no-cache notebook jupyterlab && \
+ pip3 install -e .
# #just to be sure that pdftotext is in $PATH
ENV PATH /usr/bin/pdftotext:${PATH}