diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3cfcfa4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.8-slim-buster as langchain-serve-img + +RUN pip3 install langchain-serve +RUN pip3 install api + +CMD [ "lc-serve", "deploy", "local", "api" ] + +FROM python:3.8-slim-buster as pdf-gpt-img + +WORKDIR /app + +COPY requirements.txt requirements.txt +RUN pip3 install -r requirements.txt + +COPY . . + +CMD [ "python3", "app.py" ] diff --git a/README.md b/README.md index 70da9dc..daba4ca 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ Demo URL: https://bit.ly/41ZXBJM **NOTE**: Please star this project if you like it! +### Docker +Run this commonad: +`docker-compose -f docker-compose.yaml up` + ## Use `pdfGPT` on Production using [langchain-serve](https://github.com/jina-ai/langchain-serve) #### Local playground diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..2bff917 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,15 @@ +version: '3' + +services: + langchain-serve: + build: + context: . + target: langchain-serve-img + ports: + - '8080:8080' + pdf-gpt: + build: + context: . + target: pdf-gpt-img + ports: + - '7860:7860' \ No newline at end of file