Skip to content

Commit b175baa

Browse files
authored
docker : add main-intel dockerfile (#3229)
1 parent 799eacd commit b175baa

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.devops/main-intel.Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
ARG ONEAPI_VERSION=2025.1.1-0-devel-ubuntu24.04
2+
3+
FROM intel/oneapi-basekit:$ONEAPI_VERSION AS build
4+
WORKDIR /app
5+
6+
RUN apt-get update && \
7+
apt-get install -y build-essential libsdl2-dev wget cmake git \
8+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
9+
10+
COPY .. .
11+
# Enable SYCL
12+
ARG GGML_SYCL_F16=OFF
13+
RUN if [ "${GGML_SYCL_F16}" = "ON" ]; then \
14+
echo "GGML_SYCL_F16 is set" \
15+
&& export OPT_SYCL_F16="-DGGML_SYCL_F16=ON"; \
16+
fi && \
17+
make base.en CMAKE_ARGS="-DGGML_SYCL=1 -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ${OPT_SYCL_F16}"
18+
19+
FROM intel/oneapi-basekit:$ONEAPI_VERSION AS runtime
20+
WORKDIR /app
21+
22+
RUN apt-get update && \
23+
apt-get install -y curl ffmpeg libsdl2-dev wget cmake git \
24+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
25+
26+
COPY --from=build /app /app
27+
ENV PATH=/app/build/bin:$PATH
28+
ENTRYPOINT [ "bash", "-c" ]

0 commit comments

Comments
 (0)