diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-06-27 02:20:00 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-06-27 02:20:00 +0300 |
commit | 12ef16cbeef97b58a5e660230eaa84ceb80afdbc (patch) | |
tree | a4ca8b8a5ed07b8406467f1919e2d76fd44c7952 /Dockerfile |
first commit
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..828f625 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# syntax=docker/dockerfile:1 + +FROM golang:1.22.4 + +WORKDIR /app + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . + +RUN CGO_ENABLED=0 GOOS=linux go build -o /rss2world + +ENV RSS_URL="https://neonxp.ru/feed.atom" +ENV CHECK_INTERVAL="5m" +ENV SEQ_FILE="/store/seq.txt" +ENV TELEGRAM_TOKEN="279146841:AAE9Yd2W........_gAhbO3usM" +ENV TELEGRAM_GROUPS="-1001003209449" + +CMD ["/rss2world"]
\ No newline at end of file |