Skip to content

Commit

Permalink
Merge pull request #8 from matthewfeickert/refactor/hadolint-Dockerfile
Browse files Browse the repository at this point in the history
refactor: Apply Hadolint corrections
  • Loading branch information
mlassnig authored Mar 21, 2020
2 parents 0726bdc + ba1f593 commit af4b949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ docker build -t lukasheinrich/folding:latest . -f Dockerfile
## Usage

```
docker run lukasheinrich/folding:latest
docker run --rm lukasheinrich/folding:latest
```

0 comments on commit af4b949

Please sign in to comment.