tgbapi / Dockerfile
2ch's picture
Update Dockerfile
7610aaf verified
raw
history blame contribute delete
532 Bytes
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