Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

I tried to install jupyter locally using the guideline which I found on the web.

version:                "3"

    services:

      datascience-notebook:

          image:            jupyter/datascience-notebook

          volumes:

            - /Absolute/Path/To/Where/Your/Notebook/Files/Will/Be/Saved:/home/jovyan/work

          ports:

            - 8888:8888

          container_name:   datascience-notebook-container

I am trying to add library to this image

conda install -c conda-forge fbprophet

I have researched it and found that I can use .Dockerfile. How can I achieve it by using compose?

1 Answer

0 votes
by (36.8k points)
edited by

You can use the docker and override the entry point of the docker file and override it. Make sure that you call the entry point. 

You can use the root docker image as an entry point of jupyter

ENTRYPOINT ["tini", "-g", "--"]

Try this below code for comparing file

entrypoint: [ "conda", "install", "-c", "conda-forge", "fbprophet", "&&", "tini", "-g", "--"]

But the only problem is that whenever you load the file. The code will get excited and it takes time. This is the only way to get the answer to your question.

If you are a beginner and want to know more about Data Science the do check out the Data Science course

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...