Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy the install in a separate image to not have all the build stuff in the final image(if space needed) #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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"]