File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,16 @@ FROM ${BASE_CUDA_DEV_CONTAINER} AS build
12
12
ARG CUDA_DOCKER_ARCH=default
13
13
14
14
RUN apt-get update && \
15
- apt-get install -y build-essential cmake python3 python3-pip git libcurl4-openssl-dev libgomp1
15
+ apt-get install -y build-essential cmake python3 python3-pip git libcurl4-openssl-dev libgomp1 ccache
16
16
17
17
WORKDIR /app
18
18
19
19
COPY . .
20
20
21
- RUN if [ "${CUDA_DOCKER_ARCH}" != "default" ]; then \
21
+ RUN --mount=type=cache,target=/root/.ccache \
22
+ --mount=type=cache,target=/var/lib/apt/lists \
23
+ --mount=type=cache,target=/var/cache/apt \
24
+ if [ "${CUDA_DOCKER_ARCH}" != "default" ]; then \
22
25
export CMAKE_ARGS="-DCMAKE_CUDA_ARCHITECTURES=${CUDA_DOCKER_ARCH}" ; \
23
26
fi && \
24
27
cmake -B build -DGGML_NATIVE=OFF -DGGML_CUDA=ON -DLLAMA_CURL=ON ${CMAKE_ARGS} -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined . && \
You can’t perform that action at this time.
0 commit comments