changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.vc

changeset 40: 90970dfd5a8b
parent: c4d56de0ee1a
author: Richard Westhaver <ellis@rwest.io>
date: Tue, 24 Sep 2024 15:02:27 -0400
permissions: -rw-r--r--
description: merge
1 FROM localhost/dev:latest
2 ARG VC_USER=vc
3 ARG VC_HOME=/home/${VC_USER}
4 ARG VC_ID=842
5 USER root
6 RUN --network=host pacman -Sy python-pygments python-pygit2 python-dulwich python-pip apache uwsgi --noconfirm
7 RUN useradd --system -s /usr/bin/bash -u ${VC_ID} -m ${VC_USER}
8 USER ${VC_USER}
9 WORKDIR ${VC_HOME}
10 RUN pip install --user --break-system-packages hg-evolve
11 RUN mkdir .stash
12 COPY --chmod=0755 infra .stash/infra
13 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
14 RUN cp -rf .stash/infra/home .stash/home
15 RUN cd .stash/home && hg up ${VC_USER} && cp .homerc ${VC_HOME}/.homerc
16 RUN homer install
17 ENV VC_USER=${VC_USER}
18 ENV VC_ID=${VC_ID}
19 CMD ["./serve.sh"]