Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,20 @@ docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "$PWD":/home/jovyan/wo
```

In your web browser, go to the URL shown in the output.

Or if you want to cache installation of python depenencies,
you can build docker image once with dependencies installed:

```
cd notebooks
make build # will use Makefile "build" target
```

and keep using it:

```
cd notebooks
make run # will use Makefile's "run" target
```

In your web browser, go to the URL shown in the output.
8 changes: 8 additions & 0 deletions notebooks/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM jupyter/datascience-notebook:python-3.9

# Install langchain[llms] and python-dotenv
RUN pip install langchain[llms] \
&& pip install python-dotenv

# Set the working directory
WORKDIR /home/jovyan/work
8 changes: 8 additions & 0 deletions notebooks/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.PHONY: build run

build:
docker build -t cristobalcl_img .

run:
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v "$$PWD":/home/jovyan/work cristobalcl_img