aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdam Janovsky2021-05-14 16:14:54 +0200
committerAdam Janovsky2021-05-14 16:14:54 +0200
commitdddceeb8ff1e130dcdbc57f12ebc1d2f2eeb5934 (patch)
treed886809b9fc00eecebfc835db292076fd6474a3b /Dockerfile
parentb5573af6af385ab85fd4cf4fa5f7f3c2ea62edc4 (diff)
downloadsec-certs-dddceeb8ff1e130dcdbc57f12ebc1d2f2eeb5934.tar.gz
sec-certs-dddceeb8ff1e130dcdbc57f12ebc1d2f2eeb5934.tar.zst
sec-certs-dddceeb8ff1e130dcdbc57f12ebc1d2f2eeb5934.zip
trying to workout the dockerfile for binder
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 14b19701..1c7b0235 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,16 @@
FROM ubuntu
+ARG NB_USER
+ARG NB_UID
+ENV USER ${NB_USER}
+ENV HOME /home/${NB_USER}
+
+RUN adduser --disabled-password \
+ --gecos "Default user" \
+ --uid ${NB_UID} \
+ ${NB_USER}
+WORKDIR ${HOME}
+
#installing dependencies
RUN apt-get update
RUN apt-get install python3 -y
@@ -25,6 +36,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN cp /opt/sec-certs/requirements.txt .
RUN pip install wheel
RUN pip install -r requirements.txt
+RUN pip install --no-cache notebook
#just to be sure that pdftotext is in $PATH
ENV PATH /usr/bin/pdftotext:${PATH}