-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
30 lines (24 loc) · 1.06 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
FROM debian:buster-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends curl bzip2 ca-certificates && \
curl -o /tmp/fah.tar.bz2 https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1-64bit-release.tar.bz2 && \
tar --wildcards --to-stdout -xvf /tmp/fah.tar.bz2 "*/FAHClient" >> /bin/FAHClient && \
tar --wildcards --to-stdout -xvf /tmp/fah.tar.bz2 "*/FAHCoreWrapper" >> /bin/FAHCoreWrapper && \
chmod 0755 /bin/FAHClient && \
chmod 0755 /bin/FAHCoreWrapper && \
rm /tmp/fah.tar.bz2 && \
apt-get remove -y curl bzip2 && \
apt-get autoremove -y && \
rm -rf /var/logs
RUN useradd -rm -d /home/folding -s /bin/bash -u 1000 folding
USER 1000
WORKDIR /home/folding
ENV USER Anonymous
ENV TEAM 0
ENV PASSKEY ""
ENV POWER full
ENV GPU false
# needs driver and opencl support
EXPOSE 7396
ENTRYPOINT ["sh", "-c", "FAHClient --allow=0/0:7396 --web-allow=0/0:7396 --user=$USER --team=$TEAM --passkey=$PASSKEY --power=$POWER --gpu=$GPU"]