aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2022-12-12 00:03:53 -0800
committerclarkzjw <[email protected]>2022-12-12 01:01:06 -0800
commitfe8cd972b5b72b8983c3f7fd6e7153c78ed278ea (patch)
treedbefb0b7dc8178ea1fb979303d73230f67b0f02e /rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2
parent02288734f6ca91c4a39df80435c0151f1a2dfa86 (diff)
downloadjinwei.me-fe8cd972b5b72b8983c3f7fd6e7153c78ed278ea.tar.gz
infra: add ttrss ssm resources
Diffstat (limited to 'rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2')
-rw-r--r--rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2 b/rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2
new file mode 100644
index 0000000..f7eab63
--- /dev/null
+++ b/rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2
@@ -0,0 +1,12 @@
1FROM alpine:3.17
2
3ENV VERSION={{ lookup('aws_ssm', '/jinwei-me/tgbot/version') }}
4ENV TOKEN ""
5
6WORKDIR /app
7
8ADD https://github.com/iovxw/rssbot/releases/download/${VERSION}/rssbot-en-x86_64-unknown-linux-musl /app/rssbot
9
10RUN chmod +x /app/rssbot
11
12CMD ["sh", "-c", "./rssbot ${TOKEN}"]
Powered by cgit v1.2.3 (git 2.41.0)