changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.worker

changeset 11: e3e55e6b2f64
parent: 759570e2f4d5
child: a67e164d4def
author: Richard Westhaver <ellis@rwest.io>
date: Thu, 20 Jun 2024 22:31:28 -0400
permissions: -rw-r--r--
description: init skelfile
1 FROM localhost/alpine:latest
2 # VOLUME /opt/store
3 # VOLUME /opt/stash
4 ARG ID=908
5 ARG WORKER=worker
6 ARG WORKER_HOME=/home/${WORKER}
7 # TODO: build sbcl for musl
8 RUN apk add build-base zstd-dev curl make git linux-headers openssl-dev pkgconf m4 hg
9 RUN mkdir -p /usr/share/lisp /usr/local/share/lisp
10 COPY .stash/bin/ /usr/local/bin/
11 COPY .stash/lib/ /usr/local/lib/
12 COPY .stash/include/ /usr/local/include/
13 COPY .stash/share/ /usr/local/share/
14 COPY .stash/src/ /usr/local/src/
15 WORKDIR /usr/local/src/sbcl
16 
17 ENV CARGO_HOME="/usr/local/share/cargo"
18 ENV RUSTUP_HOME="/usr/local/share/rustup"
19 ENV PATH="$PATH:/usr/local/share/cargo/bin:/usr/local/share/lisp/bin"
20 RUN adduser -D -u ${ID} ${WORKER}
21 USER ${WORKER}
22 WORKDIR ${WORKER_HOME}
23 ENV WORKER=${WORKER}
24 ENV WORKER_ID=${ID}
25 ENV WORKER_HOME=${WORKER_HOME}
26 ENTRYPOINT ["sh"]