diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3868164 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM golang:alpine +ADD . /app +WORKDIR /app +RUN go get ; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build +CMD ./Crisp_Telegram_bot + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bd652d1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' +services: + crispbot: + build: . + volumes: + - /root/config.yml:/app/config.yml + depends_on: + - db + db: + image: redis