FROM alpine:latest RUN apk add --no-cache curl WORKDIR /app # скачивание свежего автобилда: RUN curl -s https://api.github.com/repos/gniloyprolaps/telegram-bot-api-builds/releases/latest \ | grep "browser_download_url.*telegram-bot-api" \ | cut -d '"' -f 4 \ | xargs curl -L -o telegram-bot-api RUN chmod +x telegram-bot-api RUN mkdir -p data temp && chmod 777 data temp CMD ./telegram-bot-api --local --api-id=$API_ID --api-hash=$API_HASH --http-port=7860 --dir=/app/data --temp-dir=/app/temp