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

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

version:                "3"



          image:            jupyter/datascience-notebook


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


            - 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

29.3k questions

30.6k answers


104k users

Browse Categories