-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gridcoinresearchd
34 lines (27 loc) · 1.01 KB
/
Dockerfile.gridcoinresearchd
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
FROM arm64v8/ubuntu:22.04
LABEL maintainer="BOINC" \
description="A lightweight BOINC client on ARMv8 64-bit architecture."
# Global environment settings
ENV DEBIAN_FRONTEND=noninteractive \
GRCUSER=me \
GRCUID=1000 \
GRCGID=1000
# Copy files
ADD start-gridcoin.sh /usr/local/bin
RUN chmod 755 /usr/local/bin/start-gridcoin.sh
# Install
RUN apt-get update && apt-get install -y --no-install-recommends \
# Install Time Zone Database
tzdata ca-certificates gpg-agent cron jq bc rrdtool curl whois netcat net-tools netbase \
# Install PPA dependency
software-properties-common && \
# Install GridcoinResearchd
add-apt-repository -y ppa:gridcoin/gridcoin-stable && \
apt-get update && apt-get install -y --no-install-recommends gridcoinresearchd && \
groupadd -g $GRCGID $GRCUSER && \
useradd -u $GRCUID -g $GRCGID -m -s /bin/bash $GRCUSER && \
# Cleaning up
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
WORKDIR /home/$GRCUSER
CMD ["/usr/local/bin/start-gridcoin.sh"]