changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra > pod / Containerfile.web

changeset 27: 058ae6eb8c06
child: b5ff3e39b424
author: Richard Westhaver <ellis@rwest.io>
date: Sat, 27 Jul 2024 02:21:46 -0400
permissions: -rw-r--r--
description: added caddy container
1 FROM localhost/dev:latest
2 ARG WEB_USER=web
3 ARG WEB_HOME=/home/${WEB_USER}
4 ARG WEB_ID=840
5 USER root
6 RUN --network=host pacman -Sy go --noconfirm
7 RUN useradd --system -s /usr/bin/bash -u ${WEB_ID} -m ${WEB_USER}
8 USER ${WEB_USER}
9 WORKDIR ${WEB_HOME}
10 RUN hg clone https://vc.compiler.company/comp/infra .stash/infra
11 RUN .stash/infra/scripts/wg-gen-keys.sh private.key public.key
12 RUN hg clone https://vc.compiler.company/comp/home .stash/home
13 RUN cd .stash/home && hg up ${WEB_USER} && cp .homerc ${WEB_HOME}/.homerc
14 RUN homer install
15 RUN hg clone https://vc.compiler.company/comp/org .stash/org
16 RUN mkdir .stash/www
17 USER root
18 WORKDIR .stash/infra
19 RUN skel make xcaddy
20 RUN skel make caddy && skel make caddy-install
21 RUN skel clean
22 USER ${WEB_USER}
23 WORKDIR ${WEB_HOME}
24 ENV WEB_USER=${WEB_USER}
25 ENV WEB_ID=${WEB_ID}
26 ENTRYPOINT ["caddy"]