Created
September 3, 2019 12:36
-
-
Save andrewm4894/7ee15f75af7eab92e61b7ad932b259e5 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
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