ADD file:33ebe56b967747a97dcec01bc2559962bee8823686c9739d26be060381bbb3ca in / |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add --no-cache ca-certificates # buildkit |
ENV GOLANG_VERSION=1.22.4 |
ENV GOTOOLCHAIN=local |
ENV GOPATH=/go |
ENV PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
COPY /target/ / # buildkit |
RUN /bin/sh -c mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH" # buildkit |
WORKDIR /go |
WORKDIR /app |
COPY go.mod go.sum ./ # buildkit |
RUN /bin/sh -c go mod download # buildkit |
COPY . . # buildkit |
RUN /bin/sh -c CGO_ENABLED=0 GOOS=linux go build -o /rss2world # buildkit |
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"] |