diff options
author | clarkzjw <[email protected]> | 2022-12-12 00:03:53 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2022-12-12 01:01:06 -0800 |
commit | fe8cd972b5b72b8983c3f7fd6e7153c78ed278ea (patch) | |
tree | dbefb0b7dc8178ea1fb979303d73230f67b0f02e /rss.jinwei.me/config/roles/rss/templates/Dockerfile.rssbot.j2 | |
parent | 02288734f6ca91c4a39df80435c0151f1a2dfa86 (diff) | |
download | jinwei.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.j2 | 12 |
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 @@ | |||
1 | FROM alpine:3.17 | ||
2 | |||
3 | ENV VERSION={{ lookup('aws_ssm', '/jinwei-me/tgbot/version') }} | ||
4 | ENV TOKEN "" | ||
5 | |||
6 | WORKDIR /app | ||
7 | |||
8 | ADD https://github.com/iovxw/rssbot/releases/download/${VERSION}/rssbot-en-x86_64-unknown-linux-musl /app/rssbot | ||
9 | |||
10 | RUN chmod +x /app/rssbot | ||
11 | |||
12 | CMD ["sh", "-c", "./rssbot ${TOKEN}"] | ||