exclude .env file with potentionally sensitive information like LLM API KEYS

This commit is contained in:
Enrique Catalá
2025-02-12 21:32:19 +01:00
parent be7a001ad8
commit 4d0a316717
3 changed files with 2 additions and 1 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
.env

View File

@@ -33,7 +33,6 @@ WORKDIR /app
COPY --from=builder /root/.local /root/.local
COPY ./lightrag ./lightrag
COPY setup.py .
COPY .env .
RUN pip install .
# Make sure scripts in .local are usable

View File

@@ -8,6 +8,7 @@ services:
volumes:
- ./data/rag_storage:/app/data/rag_storage
- ./data/inputs:/app/data/inputs
- .env:/app/.env
env_file:
- .env
environment: