Skip to content

Commit

Permalink
remove VOLUMNE definition from Dockerfile and store git credentials i…
Browse files Browse the repository at this point in the history
…n home folder (not persistent)
  • Loading branch information
vemonet committed Apr 8, 2024
1 parent f953046 commit 73005e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,10 @@ USER ${NB_UID}
ADD bin/* ~/.local/bin/

ENV WORKSPACE="/home/${NB_USER}/work"
ENV PERSISTENT_FOLDER="${WORKSPACE}/persistent"
RUN mkdir -p $PERSISTENT_FOLDER
WORKDIR ${WORKSPACE}
VOLUME [ "${PERSISTENT_FOLDER}" ]

# Presets for git
RUN git config --global credential.helper "store --file $PERSISTENT_FOLDER/.git-credentials" && \
RUN git config --global credential.helper "store --file $HOME/.git-credentials" && \
git config --global diff.colorMoved zebra && \
git config --global fetch.prune true && \
git config --global pull.rebase false
Expand Down

0 comments on commit 73005e7

Please sign in to comment.