mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-27 06:39:25 +01:00
0a1d889e27
* server: add cURL support to `full.Dockerfile` * server: add cURL support to `full-cuda.Dockerfile` and `server-cuda.Dockerfile` * server: add cURL support to `full-rocm.Dockerfile` and `server-rocm.Dockerfile` * server: add cURL support to `server-intel.Dockerfile` * server: add cURL support to `server-vulkan.Dockerfile` * fix typo in `server-vulkan.Dockerfile` Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
32 lines
796 B
Docker
32 lines
796 B
Docker
ARG ONEAPI_VERSION=2024.0.1-devel-ubuntu22.04
|
|
|
|
FROM intel/oneapi-basekit:$ONEAPI_VERSION as build
|
|
|
|
ARG LLAMA_SYCL_F16=OFF
|
|
RUN apt-get update && \
|
|
apt-get install -y git libcurl4-openssl-dev
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir build && \
|
|
cd build && \
|
|
if [ "${LLAMA_SYCL_F16}" = "ON" ]; then \
|
|
echo "LLAMA_SYCL_F16 is set" && \
|
|
export OPT_SYCL_F16="-DLLAMA_SYCL_F16=ON"; \
|
|
fi && \
|
|
cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DLLAMA_CURL=ON ${OPT_SYCL_F16} && \
|
|
cmake --build . --config Release --target server
|
|
|
|
FROM intel/oneapi-basekit:$ONEAPI_VERSION as runtime
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y libcurl4-openssl-dev
|
|
|
|
COPY --from=build /app/build/bin/server /server
|
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
ENTRYPOINT [ "/server" ]
|