Skip to content

Instantly share code, notes, and snippets.

@aneeshpanoli
Created September 3, 2021 07:09
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 aneeshpanoli/4113521c1394a9c8e53de2b4a2525d9c to your computer and use it in GitHub Desktop.
Save aneeshpanoli/4113521c1394a9c8e53de2b4a2525d9c to your computer and use it in GitHub Desktop.
tfjupyter dockerfile
# 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