feat: Implementing Dockerfile

pull/41/head
Taher Fattahi 1 year ago
parent 7d103c71a5
commit b54ed28746

@ -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" ]

@ -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

@ -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'
Loading…
Cancel
Save