Skip to content

Instantly share code, notes, and snippets.

@andrewm4894
Created September 3, 2019 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewm4894/7ee15f75af7eab92e61b7ad932b259e5 to your computer and use it in GitHub Desktop.
Save andrewm4894/7ee15f75af7eab92e61b7ad932b259e5 to your computer and use it in GitHub Desktop.
ARG BASE_CONTAINER=jupyter/scipy-notebook
FROM $BASE_CONTAINER
LABEL maintainer="myemail@email.com"
LABEL version="01"
USER $NB_UID
# install specific package versions i want to use here
RUN conda install --quiet --yes \
pandas \
matplotlib \
boto3 && \
conda remove --quiet --yes --force qt pyqt && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# install conda build
RUN conda install --quiet --yes conda-build
# copy over local files for my package
ADD packages/ /home/$NB_USER/packages/
# add my_utils package to conda
RUN conda develop /home/$NB_USER/packages/my_utils
# some additional conda installs
RUN conda install -y awscli
# run as root user
USER root
# run jupyter lab
ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment