Last active
March 31, 2023 10:27
-
-
Save behackl/c5cb14f702d9ec7c83dbb303f13afda6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment