aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)