From 13964af5f5836013b183ad01b084da72d52d7461 Mon Sep 17 00:00:00 2001 From: Pinghao Wu <xdavidwuph@gmail.com> Date: Mon, 3 Mar 2025 14:28:39 +0800 Subject: [PATCH] containers: prepare for meta.sr.ht containerization --- containers/metasrht.apko.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 containers/metasrht.apko.yaml diff --git a/containers/metasrht.apko.yaml b/containers/metasrht.apko.yaml new file mode 100644 index 0000000..66ab9f8 --- /dev/null +++ b/containers/metasrht.apko.yaml @@ -0,0 +1,26 @@ +archs: [amd64] + +contents: + repositories: + - https://dl-cdn.alpinelinux.org/alpine/v3.20/main + - https://dl-cdn.alpinelinux.org/alpine/v3.20/community + - '@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing' + - https://mirror.sr.ht/alpine/v3.20/sr.ht + keyring: + - https://mirror.sr.ht/alpine/alpine@sr.ht.rsa.pub + packages: + - busybox + - meta.sr.ht + - py3-pam@testing + +accounts: + groups: + - groupname: meta + gid: 102 + users: + - username: meta + uid: 101 + shell: /bin/sh + run-as: meta + +cmd: /usr/bin/gunicorn metasrht.app:app -b 0.0.0.0:5000 -c /etc/sr.ht/meta.sr.ht.gunicorn.conf.py -- 2.45.2