From 6e74870096663fd1940cb7bc52fde8e9ca6c8dc5 Mon Sep 17 00:00:00 2001 From: vti Date: Sun, 29 Oct 2017 15:26:27 +0100 Subject: [PATCH] mend --- README.md | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 708abb6..ac5bb2b 100644 --- a/README.md +++ b/README.md @@ -66,42 +66,42 @@ Currently you can customize all visible texts and the main widget color by setti - Clone it locally and install or if you use Heroku, fork this repository and point the new app to it. - Set an .env variable named `TELEGRAM_TOKEN` with the value you got from @BotFather - Dockerfile example + - Dockerfile example -``` -FROM debian:9 + ``` + FROM debian:9 -RUN apt-get update -RUN apt-get install -y curl gnupg2 git build-essential + RUN apt-get update + RUN apt-get install -y curl gnupg2 git build-essential -RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - -RUN apt-get install -y nodejs + RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - + RUN apt-get install -y nodejs -WORKDIR /opt -RUN git clone https://github.com/idoco/intergram + WORKDIR /opt + RUN git clone https://github.com/idoco/intergram -WORKDIR /opt/intergram -RUN npm install -RUN npm run build + WORKDIR /opt/intergram + RUN npm install + RUN npm run build -CMD ["/usr/bin/node", "/opt/intergram/server.js"] -``` + CMD ["/usr/bin/node", "/opt/intergram/server.js"] + ``` -Build docker image + Build docker image -``` -docker build . -t intergram intergram -``` + ``` + docker build . -t intergram intergram + ``` -And run it with + And run it with -``` -docker run -d \ - -e "TELEGRAM_TOKEN=" \ - -p 3000:3000 \ - --name intergram \ - intergram -``` + ``` + docker run -d \ + -e "TELEGRAM_TOKEN=" \ + -p 3000:3000 \ + --name intergram \ + intergram + ``` 3. Point the bot webhook to your bot server by making a `GET` request to the following url `https://api.telegram.org/bot/setWebhook?url=/hook`