-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (35 loc) · 1.34 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
# Ubuntu Mantic Minotaur 23.10
ARG BUILDARCH=amd64
FROM $BUILDARCH/ubuntu:23.10
# Build arguments
ARG BUILDARCH
ARG BOINCPKGVER=7.20.5+dfsg-1.1
ARG BOINCVERSION=v7.20.5
# OCI labels
LABEL org.opencontainers.image.title="BOINC client for $BUILDARCH"
LABEL org.opencontainers.image.description="A lightweight BOINC client on $BUILDARCH."
LABEL org.opencontainers.image.url="https://github.com/0rax/docker-boinc-client"
LABEL org.opencontainers.image.source="https://github.com/0rax/docker-boinc-client"
LABEL org.opencontainers.image.authors="https://github.com/0rax/docker-boinc-client/graphs/contributors"
LABEL org.opencontainers.image.version="$BOINCVERSION-$BUILDARCH"
# Global environment settings
ENV BOINC_GUI_RPC_PASSWORD="boinc"
ENV BOINC_REMOTE_HOST="127.0.0.1"
ENV BOINC_CMD_LINE_OPTIONS=""
ENV DEBIAN_FRONTEND=noninteractive
# Install boinc and other extra utilities
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
tzdata curl wget iputils-ping dnsutils "boinc-client=$BOINCPKGVER" \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# Add custom entry-point
COPY rootfs/entrypoint.sh /entrypoint.sh
# Expose BOINC RPC port
EXPOSE 31416
# Set BOINC data folder as workdir and expose it as a volume for persistence
WORKDIR /var/lib/boinc
VOLUME /var/lib/boinc
# Entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]
CMD []