You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. FROM nvidia/cuda:10.2-base-ubuntu18.04
  2. ARG version="v7.5"
  3. RUN apt-get update && apt-get install -y --no-install-recommends \
  4. # Install PPA dependency
  5. software-properties-common \
  6. # Install Time Zone Database
  7. tzdata && \
  8. # Install folding@home client
  9. useradd --system folding && \
  10. mkdir -p /opt/fahclient && \
  11. # download and untar
  12. apt-get update -y && \
  13. apt-get install -y wget bzip2 && \
  14. wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/${version}/latest.tar.bz2 -O /tmp/fahclient.tar.bz2 && \
  15. tar -xjf /tmp/fahclient.tar.bz2 -C /opt/fahclient --strip-components=1 && \
  16. # fix permissions
  17. chown -R folding:folding /opt/fahclient && \
  18. # cleanup
  19. rm -rf /tmp/fahclient.tar.bz2 && \
  20. # Install Nvidia OpenCL
  21. add-apt-repository -y ppa:graphics-drivers && \
  22. apt-get update && apt-get install -y --install-recommends \
  23. nvidia-opencl-dev && \
  24. # Cleaning up
  25. apt-get remove -y software-properties-common && \
  26. apt-get autoremove -y && \
  27. apt-get clean autoclean && \
  28. rm -rf /var/lib/apt/lists/*
  29. COPY --chown=folding:folding entrypoint.sh /opt/fahclient
  30. RUN chmod +x /opt/fahclient/entrypoint.sh
  31. ENV USER "Anonymous"
  32. ENV TEAM "0"
  33. ENV ENABLE_GPU "true"
  34. ENV ENABLE_SMP "true"
  35. ENV POWER "full"
  36. USER folding
  37. WORKDIR /opt/fahclient
  38. EXPOSE 7396
  39. EXPOSE 36330
  40. ENTRYPOINT ["/opt/fahclient/entrypoint.sh"]