Skip to content

Commit 316075f

Browse files
committed
fix workdir and file location
1 parent d10051f commit 316075f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ RUN apt-get update && apt-get install -y pandoc wget build-essential && rm -rf /
77

88
# Update the environment:
99
COPY requirements.txt .
10-
COPY notebooks ./notebooks
1110

1211
# I was sometimes running into errors with hashes:
13-
RUN python -m pip install --upgrade pip && pip cache purge
12+
RUN python -m pip install --upgrade pip && pip cache purge
1413

1514
# This is to avoid getting the GPU torch version. Please remove the index option, if you have a GPU:
1615
RUN pip install torch>=1.11.0 --extra-index-url https://download.pytorch.org/whl/cpu
@@ -19,6 +18,7 @@ RUN pip install torch>=1.11.0 --extra-index-url https://download.pytorch.org/whl
1918
RUN pip install --prefer-binary --no-cache-dir -r requirements.txt
2019

2120
WORKDIR /home
21+
COPY . ./.
2222

2323
EXPOSE 8888
24-
ENTRYPOINT ["jupyter", "notebook", "--notebook-dir=/notebooks", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''"]
24+
ENTRYPOINT ["jupyter", "notebook", "--notebook-dir=.", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ There's a [docker](https://www.docker.com/) file for the environment as well. It
202202

203203
```bash
204204
docker build -t langchain_ai .
205-
docker run -d -p 8888:8888 langchain_ai
205+
docker run -it -p 8888:8888 langchain_ai
206206
```
207207

208208
You should be able to find the notebook in your browser at [http://localhost:8888](http://localhost:8888).

0 commit comments

Comments
 (0)