Browse Source

BE A GOOD BOT

master
Hugo Levy-Falk 2 years ago
parent
commit
6df2a587a1
  1. 3
      .gitignore
  2. 4
      Dockerfile
  3. 11
      docker-compose.example.yml

3
.gitignore

@ -1 +1,2 @@
result.json
docker-compose.yml

4
Dockerfile

@ -1,5 +1,5 @@
FROM julia:latest
WORKDIR /code
RUN julia -e "import Pkg;Pkg.add(\"/code\")"
ADD . /code
RUN julia -e "import Pkg;Pkg.add(path=\"/code\")"
ENTRYPOINT julia -e "using TelegramMarkov;run_server()"

11
docker-compose.example.yml

@ -0,0 +1,11 @@
version: '3'
services:
telegrammarkov:
build: .
volumes:
- .:/code
environment:
TG_CHAT_ID: "secret"
INPUT_MARKOV: /code/result.json
TG_TOKEN_MARKOV: "another secret"
Loading…
Cancel
Save