Install psycopg2-binary in Dockerfile only, not in dev requirements
This commit is contained in:
parent
03712fe401
commit
3b7c88bf2c
@ -73,16 +73,10 @@ volumes:
|
|||||||
|
|
||||||
Für Produktionsumgebungen mit externer Datenbank.
|
Für Produktionsumgebungen mit externer Datenbank.
|
||||||
|
|
||||||
> **Voraussetzung:** PostgreSQL-Unterstützung erfordert `psycopg2-binary` im Image. Entweder ein eigenes Image auf Basis von `mediaeng/llmproxy` bauen oder den Container beim Start erweitern:
|
|
||||||
> ```dockerfile
|
|
||||||
> FROM mediaeng/llmproxy:latest
|
|
||||||
> RUN pip install psycopg2-binary
|
|
||||||
> ```
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
llmproxy:
|
llmproxy:
|
||||||
image: mediaeng/llmproxy:latest # oder eigenes Image mit psycopg2
|
image: mediaeng/llmproxy:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
|||||||
@ -9,7 +9,7 @@ FROM python:3.12-slim
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY backend/requirements.txt .
|
COPY backend/requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt psycopg2-binary
|
||||||
|
|
||||||
COPY backend/ backend/
|
COPY backend/ backend/
|
||||||
COPY --from=frontend-builder /app/frontend/dist frontend/dist
|
COPY --from=frontend-builder /app/frontend/dist frontend/dist
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user