Fix: docker build
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
@@ -6,8 +6,16 @@ WORKDIR /app
|
|
6 |
# Install build dependencies
|
7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
8 |
build-essential \
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
|
|
|
|
11 |
# Copy only requirements files first to leverage Docker cache
|
12 |
COPY requirements.txt .
|
13 |
COPY lightrag/api/requirements.txt ./lightrag/api/
|
|
|
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/
|