Dockerfile 541 Bytes
Newer Older
Daniele Venzano's avatar
Daniele Venzano committed
1 2
ARG VERSION=test
FROM zapps/base:${VERSION}
Daniele Venzano's avatar
Daniele Venzano committed
3 4 5 6 7 8 9 10

MAINTAINER Daniele Venzano <venza@brownhat.org>

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install --yes --no-install-recommends --no-install-suggests boinc && apt-get clean && rm -Rf /var/lib/apt/lists/*

RUN mkdir /data
Daniele Venzano's avatar
Daniele Venzano committed
11
RUN chmod 777 /data
Daniele Venzano's avatar
Daniele Venzano committed
12 13
WORKDIR /data

14
COPY files/*.xml /data
15 16
COPY files/start_boinc.sh /usr/local/bin
RUN chmod 755 /usr/local/bin/start_boinc.sh
Daniele Venzano's avatar
Daniele Venzano committed
17

18 19
COPY files/custom_startup.sh /opt
RUN chmod +x /opt/custom_startup.sh
20

21
CMD /usr/local/bin/start_boinc.sh
Daniele Venzano's avatar
Daniele Venzano committed
22