diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..2eea525d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8c9474de..4532ee61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index a4713279..b5659692 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: