Skip to content

Commit

Permalink
final try
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Shminke committed May 26, 2022
1 parent d8c83a6 commit c26f29d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
25 changes: 1 addition & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1 @@
FROM makarius/isabelle:Isabelle2021-1
ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
USER root
RUN groupmod -g 9999 isabelle
RUN usermod -u 9999 -g 9999 isabelle
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
RUN apt-get update
RUN apt-get install -y python3-pip
ENV HOME /home/${NB_USER}
ENV ISABELLE_BIN /home/isabelle/Isabelle/bin/
ENV PATH=${HOME}/.local/bin/:${ISABELLE_BIN}:${PATH}
COPY examples/ ${HOME}/isabelle-client-examples/
RUN chown -R ${NB_USER}:${NB_USER} ${HOME}/isabelle-client-examples/
RUN chown -R ${NB_USER}:${NB_USER} ${ISABELLE_BIN}
USER ${NB_USER}
WORKDIR ${HOME}
RUN python3 -m pip install --no-cache-dir notebook jupyterlab isabelle-client
ENTRYPOINT []
FROM inpefess/isabelle-client:latest
24 changes: 24 additions & 0 deletions _Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM makarius/isabelle:Isabelle2021-1
ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
USER root
RUN groupmod -g 9999 isabelle
RUN usermod -u 9999 -g 9999 isabelle
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
RUN apt-get update
RUN apt-get install -y python3-pip
ENV HOME /home/${NB_USER}
ENV ISABELLE_BIN /home/isabelle/Isabelle/bin/
ENV PATH=${HOME}/.local/bin/:${ISABELLE_BIN}:${PATH}
COPY examples/ ${HOME}/isabelle-client-examples/
RUN chown -R ${NB_USER}:${NB_USER} ${HOME}/isabelle-client-examples/
RUN chown -R ${NB_USER}:${NB_USER} ${ISABELLE_BIN}
USER ${NB_USER}
WORKDIR ${HOME}
RUN python3 -m pip install --no-cache-dir notebook jupyterlab isabelle-client
ENTRYPOINT []

0 comments on commit c26f29d

Please sign in to comment.