-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
815ca35
commit c9af6b3
Showing
1 changed file
with
9 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
############################################################# | ||
# Builder image. It builds the Intel NEO OpenCL GPU driver. # | ||
############################################################# | ||
FROM adamradocz/intel-neo-opencl-gpu-driver-builder as builder | ||
|
||
WORKDIR /build | ||
|
||
################## | ||
# The main image # | ||
################## | ||
FROM boinc/client:nvidia | ||
|
||
LABEL maintainer="BOINC" \ | ||
description="A base container image for lightweight Multi GPU-savvy (Intel 5th gen+ & Nvidia) BOINC clients" | ||
|
||
# Install | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
# Generic OpenCL ICD Loader | ||
# Install PPA dependency | ||
software-properties-common \ | ||
# Generic OpenCL ICD Loader | ||
ocl-icd-libopencl1 && \ | ||
# Install Intel NEO OpenCL | ||
add-apt-repository -y ppa:jdanecki/intel-opencl && \ | ||
apt-get update && apt-get install -y --no-install-recommends \ | ||
intel-opencl && \ | ||
# Cleaning up | ||
apt-get remove -y software-properties-common && \ | ||
apt-get autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy Intel NEO OpenCL .deb from builder | ||
COPY --from=builder /build/intel-opencl*.deb /usr/bin | ||
|
||
# Install the Intel NEO OpenCL Driver. It supports Broadwell (5th generation) CPUs and beyond. | ||
RUN dpkg -i /usr/bin/intel-opencl*.deb |