fix bad supabase version + add build deps
Browse files- Dockerfile +7 -1
- requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,12 @@
|
|
| 1 |
FROM python:3.11-slim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
WORKDIR /code
|
| 3 |
COPY requirements.txt .
|
| 4 |
-
RUN pip install -r requirements.txt
|
| 5 |
COPY . .
|
| 6 |
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
# install faiss dependencies
|
| 4 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 5 |
+
build-essential \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
WORKDIR /code
|
| 9 |
COPY requirements.txt .
|
| 10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
COPY . .
|
| 12 |
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
flask==3.0.2
|
| 2 |
langchain==0.3.0
|
| 3 |
langchain-community==0.3.0
|
|
@@ -5,6 +6,6 @@ langchain-huggingface==0.3.0
|
|
| 5 |
sentence-transformers==3.0.0
|
| 6 |
faiss-cpu==1.8.0
|
| 7 |
datasets==2.20.0
|
| 8 |
-
supabase==2.6.
|
| 9 |
python-dotenv==1.0.1
|
| 10 |
gunicorn==22.0.0
|
|
|
|
| 1 |
+
# requirements.txt
|
| 2 |
flask==3.0.2
|
| 3 |
langchain==0.3.0
|
| 4 |
langchain-community==0.3.0
|
|
|
|
| 6 |
sentence-transformers==3.0.0
|
| 7 |
faiss-cpu==1.8.0
|
| 8 |
datasets==2.20.0
|
| 9 |
+
supabase==2.6.0 # ← real version
|
| 10 |
python-dotenv==1.0.1
|
| 11 |
gunicorn==22.0.0
|