From fe8cd972b5b72b8983c3f7fd6e7153c78ed278ea Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 12 Dec 2022 00:03:53 -0800 Subject: infra: add ttrss ssm resources --- .../config/roles/rss/templates/Dockerfile.rssbot.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2 (limited to 'rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2') 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 @@ +FROM alpine:3.17 + +ENV VERSION={{ lookup('aws_ssm', '/jinwei-me/tgbot/version') }} +ENV TOKEN "" + +WORKDIR /app + +ADD https://github.com/iovxw/rssbot/releases/download/${VERSION}/rssbot-en-x86_64-unknown-linux-musl /app/rssbot + +RUN chmod +x /app/rssbot + +CMD ["sh", "-c", "./rssbot ${TOKEN}"] -- cgit v1.2.3