jaothan commited on
Commit
ce1c413
·
verified ·
1 Parent(s): e412fa4

Upload app.Dockerfile

Browse files
Files changed (1) hide show
  1. app.Dockerfile +21 -0
app.Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM langchain/langchain
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ software-properties-common \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt .
12
+
13
+ RUN pip install --upgrade -r requirements.txt
14
+
15
+ COPY api.py .
16
+ COPY utils.py .
17
+ COPY chains.py .
18
+
19
+ HEALTHCHECK CMD curl --fail http://localhost:8504
20
+
21
+ ENTRYPOINT [ "uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8504" ]