Skip to content

Instantly share code, notes, and snippets.

@behackl
Last active March 31, 2023 10:27
Show Gist options
  • Save behackl/c5cb14f702d9ec7c83dbb303f13afda6 to your computer and use it in GitHub Desktop.
Save behackl/c5cb14f702d9ec7c83dbb303f13afda6 to your computer and use it in GitHub Desktop.
FROM ghcr.io/kbredies/gratopy:pocl-latest
ARG NB_UID=1000
ARG NB_USER=gratopy
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
RUN pip3 install notebook
USER ${NB_USER}
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
ENV PATH="${PATH}:${HOME}/.local/bin"
WORKDIR ${HOME}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment