I have a jupyter notebook and a data file in a folder. I made a Dockerfile and wrote the following lines
FROM jupyter/base-notebook
ARG export_file=FooD_Kind.csv
RUN pip install jupyter
RUN pip install numpy
RUN pip install matplotlib
RUN pip install pandas
RUN pip install pulp
COPY $export_file FooD_Kind.csv
COPY task_4kind.ipynb /
CMD ["jupyter notebook", "task_4kind.ipynb"]
I can successfully build an image using docker build -t nameofimage But when I do docker run -it nameofimage. I get an error [FATAL tini (7)] exec jupyter notebook failed: No such file or directory .
How do I run this jupyter notebook in docker?
EDIT:
I tried two replacements on the last line,
I replaced the last line with
# Start the jupyter notebook
ENTRYPOINT ["jupyter", "notebook", "--ip=*"]
It runs and gives a token on the screen but when I paste the token on localhost, It gives invalid credentials error
then I replaced the last line with
CMD jupyter notebook --port=8888 --no-browser --ip=0.0.0.0 --allow-root
It runs and gives a token on the screen but when I paste the token on localhost, It gives invalid credentials error