forked from yurinnick/folding-at-home-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (33 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM debian:stable-slim
LABEL maintainer="yurinnick" \
repository="https://github.com/yurinnick/folding-at-home-docker" \
description="Unofficial Folding@Home image for CPU compute" \
version="7.6"
ARG version="v7.6"
RUN useradd --system folding && \
mkdir -p /opt/fahclient/work && \
# download and untar
apt-get update -y && \
apt-get install -y wget bzip2 && \
wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/${version}/latest.tar.bz2 -O /tmp/fahclient.tar.bz2 && \
tar -xjf /tmp/fahclient.tar.bz2 -C /opt/fahclient --strip-components=1 && \
# fix permissions
chown -R folding:folding /opt/fahclient && \
# cleanup
rm -rf /tmp/fahclient.tar.bz2 && \
apt-get purge -y wget bzip2 && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/apt/lists/*
COPY --chown=folding:folding entrypoint.sh /opt/fahclient
RUN chmod +x /opt/fahclient/entrypoint.sh
ENV USER "Anonymous"
ENV TEAM "0"
ENV ENABLE_GPU "false"
ENV ENABLE_SMP "true"
ENV POWER "full"
USER folding
WORKDIR /opt/fahclient
EXPOSE 7396
EXPOSE 36330
ENTRYPOINT ["/opt/fahclient/entrypoint.sh"]