-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (12 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
17 lines (12 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#It seems there is no "slim" image that contains everything that is required. Too bad...
FROM ubuntu:latest
LABEL maintainer="rejutka"
ADD https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.5/fahclient_7.5.1_amd64.deb /tmp/fahclient.deb
# FIXME: Awful workaround until the DEBs are correctly packaged
RUN dpkg -i /tmp/fahclient.deb || true
#Create XML configuration for FAH
RUN echo "<config> <fold-anon v='true'/> <gpu v='false'/> <slot id='0' type='CPU'/> <max-units v='1' /><exit-when-done v='true' /></config>" > /usr/bin/config.xml
RUN sed -i s/numUnits/$numUnits/g /usr/bin/config.xml
VOLUME ["/var/lib/fahclient", "/etc/fahclient"]
ENTRYPOINT [ "/usr/bin/FAHClient", "/usr/bin/config.xml"]
#CMD [ ]