feat: optimize multi platform image build (#754)

This commit is contained in:
takatost
2023-08-05 17:23:57 +08:00
committed by GitHub
parent 6a7a71af1f
commit 491d29cc87
6 changed files with 16 additions and 262 deletions

View File

@@ -1,4 +1,4 @@
FROM langgenius/base:1.0.1-bullseye-slim as langgenius-api
FROM python:3.10-slim
LABEL maintainer="takatost@gmail.com"
@@ -15,6 +15,9 @@ EXPOSE 5001
WORKDIR /app/api
RUN apt-get update && \
apt-get install -y bash curl wget vim gcc g++ python3-dev libc-dev libffi-dev
COPY requirements.txt /app/api/requirements.txt
RUN pip install -r requirements.txt

View File

@@ -8,7 +8,7 @@ flask-migrate~=4.0.4
flask-restful==0.3.9
flask-session2==1.3.1
flask-cors==3.0.10
gunicorn~=20.1.0
gunicorn~=21.2.0
gevent~=22.10.2
langchain==0.0.239
openai~=0.27.8