-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
33 lines (25 loc) · 866 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
31
32
33
FROM debian:unstable
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
bzip2 \
ca-certificates \
curl \
git \
guix \
make \
gpg && rm -rf /var/lib/apt/lists/*
ARG builder_count=32
ARG branch=develop
# Build Environment Setup
# https://guix.gnu.org/manual/en/html_node/Build-Environment-Setup.html#Build-Environment-Setup
RUN addgroup guixbuild
RUN for i in $(seq -w 1 ${builder_count}); do \
useradd -g guixbuild -G guixbuild \
-d /var/empty -s $(which nologin) \
-c "Guix build user ${i}" --system \
"guixbuilder${i}" ; \
done
CMD guix-daemon \
--build-users-group=guixbuild \
--substitute-urls="https://ci.guix.gnu.org"
RUN git clone https://github.com/DigiByte-Core/digibyte.git -b $branch /digibyte
WORKDIR /digibyte