Created
September 3, 2021 07:09
-
-
Save aneeshpanoli/4113521c1394a9c8e53de2b4a2525d9c to your computer and use it in GitHub Desktop.
tfjupyter dockerfile
This file contains hidden or 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
# pull the official image | |
FROM tensorflow/tensorflow:latest-gpu-jupyter | |
# make a dir inside the container to copy files | |
WORKDIR /tfjupyter | |
# install additional packages | |
COPY requirements.txt . | |
COPY entrypoint.sh . | |
RUN ["chmod", "+x", "entrypoint.sh"] | |
RUN ./entrypoint.sh | |
# enable websocket to connect to colab | |
RUN jupyter serverextension enable --py jupyter_http_over_ws | |
# copy over the Jupyter config files | |
# jupyter --config-dir <-- docker ps and bash into container to find the default config | |
COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment