From dc751d26c0aa83fe80549e145b8b752bdd6db8b1 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 20 Mar 2020 22:31:22 -0500 Subject: [PATCH] refactor: Apply Hadolint corrections c.f. - https://github.com/hadolint/hadolint/wiki/DL3009 - https://github.com/hadolint/hadolint/wiki/DL3015 - https://github.com/hadolint/hadolint/wiki/DL3025 --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3470d49..1bc51af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,16 @@ FROM nvidia/opencl:runtime-ubuntu18.04 ENV DEBIAN_FRONTEND noninteractive -RUN apt-get -y update -RUN apt-get -y install ocl-icd-opencl-dev +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 -RUN dpkg -i /tmp/fahclient_7.5.1_amd64.deb || exit 0 -RUN rm /tmp/fahclient_7.5.1_amd64.deb +RUN dpkg -i /tmp/fahclient_7.5.1_amd64.deb || exit 0 && \ + rm /tmp/fahclient_7.5.1_amd64.deb WORKDIR /root VOLUME /root -CMD FAHClient --user=CERN --team=38188 --gpu=true --smp=true +CMD ["FAHClient", "--user=CERN", "--team=38188", "--gpu=true", "--smp=true"]