ArnoChen commited on
Commit
d5c4da0
·
1 Parent(s): d523251

simplify dockerfile and docker-compose files

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -13
  2. docker-compose.yml +2 -10
Dockerfile CHANGED
@@ -3,19 +3,6 @@ FROM python:3.11-slim as builder
3
 
4
  WORKDIR /app
5
 
6
- # Install build dependencies
7
- RUN apt-get update && apt-get install -y --no-install-recommends \
8
- build-essential \
9
- curl \
10
- pkg-config \
11
- libssl-dev \
12
- && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
13
- && . "$HOME/.cargo/env" \
14
- && rustup default stable \
15
- && rm -rf /var/lib/apt/lists/*
16
-
17
- ENV PATH="/root/.cargo/bin:${PATH}"
18
-
19
  # Copy only requirements files first to leverage Docker cache
20
  COPY requirements.txt .
21
  COPY lightrag/api/requirements.txt ./lightrag/api/
 
3
 
4
  WORKDIR /app
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  # Copy only requirements files first to leverage Docker cache
7
  COPY requirements.txt .
8
  COPY lightrag/api/requirements.txt ./lightrag/api/
docker-compose.yml CHANGED
@@ -6,16 +6,8 @@ services:
6
  volumes:
7
  - ./data/rag_storage:/app/data/rag_storage
8
  - ./data/inputs:/app/data/inputs
9
- - .env:/app/.env
 
10
  env_file:
11
  - .env
12
- environment:
13
- - TZ=UTC
14
  restart: unless-stopped
15
- networks:
16
- - lightrag_net
17
- extra_hosts:
18
- - "host.docker.internal:host-gateway"
19
- networks:
20
- lightrag_net:
21
- driver: bridge
 
6
  volumes:
7
  - ./data/rag_storage:/app/data/rag_storage
8
  - ./data/inputs:/app/data/inputs
9
+ - ./config.ini:/app/config.ini
10
+ - ./.env:/app/.env
11
  env_file:
12
  - .env
 
 
13
  restart: unless-stopped