From 9828f63e1996701e2b1925136396c8faf27b283b Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Sun, 6 Jun 2021 14:53:57 +0200 Subject: [PATCH] fix docker compose --- Dockerfile | 2 +- README.md | 1 + docker-compose.yml | 4 +--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index db1ac2f..3c2a084 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ RUN go get -v github.com/rubenv/sql-migrate/... COPY . . RUN CGO_ENABLED=1 GOOS=linux go build -a -ldflags '-linkmode external -extldflags "-static"' -o app . RUN sql-migrate up -env production -CMD ["./app", "run"] \ No newline at end of file +ENTRYPOINT ["./app", "run"] \ No newline at end of file diff --git a/README.md b/README.md index 197cf3c..7199e1f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Create a [telegram bot](https://core.telegram.org/bots#creating-a-new-bot) to ge Rename `.config.example.yml` to `.config.yml` and add your token in this file. + ### Local This project use golang and sqlite3 make sure it is installed before following the next steps (unless you use docker). diff --git a/docker-compose.yml b/docker-compose.yml index 4ee8f49..823cd67 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,5 @@ -version: "3" +version: "3.7" services: bot: build: . - volumes: - - ./database.db:/root/database.db