forked from arnaudhb/docker-fahclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 772 Bytes
/
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 ubuntu:18.10
# non interactive mode
ENV DEBIAN_FRONTEND=noninteractive
# build args
ARG BRAND
ARG VERSION
# install packages needed by fahclient installer
RUN apt-get update && apt-get install -y bzip2
# add files to image
COPY docker-entrypoint.sh /
COPY add/config.xml /etc/fahclient/
ADD https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/${BRAND}/fahclient_${VERSION}_amd64.deb /fahclient.deb
# do not properly install package, but only retrieve binaries
RUN dpkg -x ./fahclient.deb ./deb &&\
mv deb/usr/bin/* /usr/bin &&\
rm -rf *.deb &&\
rm -rf deb &&\
chmod u+x /docker-entrypoint.sh &&\
rm -rf /var/lib/apt/lists/*
# go to homedir
WORKDIR /var/lib/fahclient
# entrypoint
ENTRYPOINT ["/docker-entrypoint.sh"]