From 31fd5177808225d39717af3b820ea5b65f67e145 Mon Sep 17 00:00:00 2001
From: Pinghao Wu <xdavidwuph@gmail.com>
Date: Thu, 6 Mar 2025 13:35:34 +0800
Subject: [PATCH] containers: prepare for buildssrht control

---
 containers/buildssrht.apko.yaml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 containers/buildssrht.apko.yaml

diff --git a/containers/buildssrht.apko.yaml b/containers/buildssrht.apko.yaml
new file mode 100644
index 0000000..88a68f2
--- /dev/null
+++ b/containers/buildssrht.apko.yaml
@@ -0,0 +1,24 @@
+archs: [amd64]
+
+contents:
+  repositories:
+    - https://dl-cdn.alpinelinux.org/alpine/v3.20/main
+    - https://dl-cdn.alpinelinux.org/alpine/v3.20/community
+    - https://mirror.sr.ht/alpine/v3.20/sr.ht
+  keyring:
+    - https://mirror.sr.ht/alpine/alpine@sr.ht.rsa.pub
+  packages:
+    - busybox
+    - builds.sr.ht
+
+accounts:
+  groups:
+    - groupname: builds
+      gid: 101
+  users:
+    - username: builds
+      uid: 101
+      shell: /bin/sh
+  run-as: builds
+
+cmd: /usr/bin/gunicorn buildsrht.app:app -b 0.0.0.0:5002 -c /etc/sr.ht/builds.sr.ht.gunicorn.conf.py
-- 
2.45.2