1 FROM
localhost/alpine:latest
4 ARG
WORKER_HOME=/home/
${WORKER} 5 RUN
apk
add
build-base
zstd-dev
curl
make
git
linux-headers
openssl-dev
pkgconf
m4
mercurial
llvm
6 RUN
mkdir
-pv
/usr/share/lisp
/usr/local/share/lisp
7 RUN
addgroup
-g
128
engineer
8 RUN
addgroup
-g
256
operator
9 RUN
addgroup
-g
512
worker
10 RUN
adduser
-D
-u
${WORKER_ID} -G
worker
${WORKER} 11 RUN
chown
-R
${WORKER_ID}:worker
/usr/local/
12 RUN
mkdir
-pv
${WORKER_HOME}/.stash
13 WORKDIR
/usr/local/src
14 RUN
hg
clone
https://vc.compiler.company/comp/infra
16 ENV
CARGO_HOME="/usr/local/share/cargo"
17 ENV
RUSTUP_HOME="/usr/local/share/rustup"
18 ENV
PATH="
$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
20 #
WORKDIR
${WORKER_HOME} 21 #
RUN
rm
-rf
/usr/local/src/*
24 ENV
WORKER_ID=
${WORKER_ID} 25 ENV
WORKER_HOME=
${WORKER_HOME}