Skip to content

Commit

Permalink
fix: Fix Invalid ELF image error for the shell (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored May 15, 2024
1 parent 0b2eede commit 4c796df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,20 @@ ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "/srv/start"]
# and easier to reason about.
# ----------------------
ONBUILD USER root

# Set default shell for system setup
ONBUILD SHELL ["/bin/sh", "-c"]

# FIXME (?): user and home folder is hardcoded for now
# FIXME (?): this line breaks the cache of all steps below
ONBUILD COPY --chown=${NB_USER}:${NB_USER} . ${HOME}

# Make sure that /opt/conda is owned by non-root user, so we can install additional packages
ONBUILD RUN chown -R ${NB_USER}:${NB_USER} ${CONDA_DIR}

# Put the shell back to the micromamba shell
ONBUILD SHELL ["/usr/local/bin/_dockerfile_shell.sh"]

# repo2docker will load files from a .binder or binder directory if
# present. We check if those directories exist, and print a diagnostic
# message here.
Expand Down

0 comments on commit 4c796df

Please sign in to comment.