Skip to content

Commit

Permalink
Fix scripts in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dufkan committed Aug 2, 2023
1 parent 214d3ce commit 65c301c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*venv/
build/
dissect.egg-info/
Dockerfile
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM sagemath/sagemath:9.8

# Setup sage and jupyter
RUN sage --pip3 install --no-cache-dir notebook
RUN sage --pip install --no-cache-dir notebook

# Conform to mybinder
ARG NB_USER=jovyan
Expand All @@ -15,10 +15,11 @@ RUN apt-get update && apt-get install ca-certificates
RUN usermod -l ${NB_USER} sage
COPY . ${TARGET}
RUN chown -R ${NB_UID} ${TARGET}
USER ${NB_USER}

# Install DiSSECT
USER ${NB_USER}
WORKDIR ${TARGET}
RUN sage --pip3 install --editable .
ENV PATH "${HOME}/sage/local/bin:${PATH}"
ENV PATH "${HOME}/.sage/local/bin:${PATH}"
RUN sage --pip install --user .
RUN sed -i 's/^#!.*$/#!\/usr\/bin\/env sage/' ${HOME}/.sage/local/bin/dissect-*
ENTRYPOINT []

0 comments on commit 65c301c

Please sign in to comment.