Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
FROM nvidia/opencl:runtime-ubuntu18.04
FROM nvidia/opencl:runtime-ubuntu18.04 as base

ENV DEBIAN_FRONTEND noninteractive
FROM base AS builder

RUN apt-get update && \
apt-get install -y --no-install-recommends ocl-icd-opencl-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

ADD https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb /tmp

ENV DEBIAN_FRONTEND noninteractive

RUN dpkg -i /tmp/fahclient_7.5.1_amd64.deb || exit 0 && \
rm /tmp/fahclient_7.5.1_amd64.deb
rm /tmp/fahclient_7.5.1_amd64.deb


FROM base

COPY --from=builder /usr/bin/FAHClient /usr/bin/FAHClient
# maybe check if these files ar needed
# /etc/init.d/FAHClient
# /usr/bin/FAHCoreWrapper
# /usr/share/applications/FAHWebControl.desktop
# /usr/share/doc/fahclient/sample-config.xml

WORKDIR /root
VOLUME /root

CMD ["FAHClient", "--user=CERN", "--team=38188", "--gpu=true", "--smp=true"]