File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ FROM alpine:latest
22
33# 引入 TARGETARCH 变量
44ARG TARGETARCH
5+ ARG TG_TOKEN
6+ ARG TG_CHATID
57
68RUN apk add --no-cache curl ca-certificates bash libc6-compat libgcc libstdc++
79
@@ -25,10 +27,10 @@ RUN set -e; \
2527 curl -L "https://raw.githubusercontent.com/uerax/all-in-one-bot/master/all-in-one-bot.yml" -o /etc/aio/all-in-one-bot.yml; \
2628 echo "Configuration downloaded. Please edit /etc/aio/all-in-one-bot.yml and restart the container." ; \
2729 if [ -n "$TG_TOKEN" ]; then \
28- sed -i "s/{{ TG_TOKEN}} /${TG_TOKEN}/g" "/etc/aio/all-in-one-bot.yml" ; \
30+ sed -i "s/TG_TOKEN/${TG_TOKEN}/g" "/etc/aio/all-in-one-bot.yml" ; \
2931 fi; \
3032 if [ -n "$TG_CHATID" ]; then \
31- sed -i "s/{{ TG_CHATID}} /${TG_CHATID}/g" "/etc/aio/all-in-one-bot.yml" ; \
33+ sed -i "s/TG_CHATID/${TG_CHATID}/g" "/etc/aio/all-in-one-bot.yml" ; \
3234 fi; \
3335 fi
3436
Original file line number Diff line number Diff line change 1+ TG_TOKEN=
2+ TG_CHATID=
You can’t perform that action at this time.
0 commit comments