mirror of https://github.com/bhaskatripathi/pdfGPT
feat: Implementing Dockerfile
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" ]
|
@ -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…
Reference in New Issue