diff options
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}"] | ||