Докеризировал

This commit is contained in:
Lulzette 2021-10-19 09:11:46 +00:00
parent 06d2cec493
commit a5b5d0486c
2 changed files with 16 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -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

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '3'
services:
crispbot:
build: .
volumes:
- /root/config.yml:/app/config.yml
depends_on:
- db
db:
image: redis