Skip to content

Commit a2a6f15

Browse files
committed
server: add cURL support to server-intel.Dockerfile
1 parent e55ca1b commit a2a6f15

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.devops/server-intel.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM intel/oneapi-basekit:$ONEAPI_VERSION as build
44

55
ARG LLAMA_SYCL_F16=OFF
66
RUN apt-get update && \
7-
apt-get install -y git
7+
apt-get install -y git libcurl4-openssl-dev
88

99
WORKDIR /app
1010

@@ -16,11 +16,14 @@ RUN mkdir build && \
1616
echo "LLAMA_SYCL_F16 is set" && \
1717
export OPT_SYCL_F16="-DLLAMA_SYCL_F16=ON"; \
1818
fi && \
19-
cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ${OPT_SYCL_F16} && \
19+
cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DLLAMA_CURL=ON ${OPT_SYCL_F16} && \
2020
cmake --build . --config Release --target server
2121

2222
FROM intel/oneapi-basekit:$ONEAPI_VERSION as runtime
2323

24+
RUN apt-get update && \
25+
apt-get install -y libcurl4-openssl-dev
26+
2427
COPY --from=build /app/build/bin/server /server
2528

2629
ENV LC_ALL=C.utf8

0 commit comments

Comments
 (0)