BE A GOOD BOT
This commit is contained in:
parent
69ef72a039
commit
6df2a587a1
3 changed files with 15 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
|
||||
result.json
|
||||
docker-compose.yml
|
||||
|
|
|
@ -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
Normal file
11
docker-compose.example.yml
Normal file
|
@ -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…
Reference in a new issue