forked from beastob/foldingathome-arm64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (34 loc) · 1.22 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
43
44
FROM debian:stable as builder
# fahclient version
ARG CLIENT_MAJOR_VERSION=7.6
ARG CLIENT_MINOR_VERION=21
USER root
RUN apt update && \
apt install -y curl bzip2 debconf-utils
# Install folding@home fahclient
WORKDIR /root
RUN curl -O https://download.foldingathome.org/releases/beta/release/fahclient/debian-stable-arm64/v${CLIENT_MAJOR_VERSION}/fahclient_${CLIENT_MAJOR_VERSION}.${CLIENT_MINOR_VERION}_arm64.deb
RUN dpkg -i --force-depends fahclient_${CLIENT_MAJOR_VERSION}.${CLIENT_MINOR_VERION}_arm64.deb
# Copy init config file
COPY init.sh /root/init.sh
RUN chmod u+x /root/init.sh
#############################################
# Multi-stage build to trim down image size #
#############################################
FROM debian:stable-slim
LABEL maintainer="[email protected]"
# Default configuration parameters for folding client
ENV FOLD_ANON=true \
FOLD_USER='' \
FOLD_PASSKEY='' \
FOLD_TEAM=0 \
FOLD_POWER=full \
FOLD_ALLOW_IP=''
RUN apt update
WORKDIR /
COPY --from=builder /usr/bin/FAH* /usr/bin/
COPY --from=builder /etc/init.d/FAHClient /etc/init.d/FAHClient
COPY --from=builder /root/init.sh /root/init.sh
COPY --from=builder /etc/fahclient /etc/fahclient
CMD /root/init.sh
EXPOSE 7396