Skip to content

Commit

Permalink
fix docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwan Leboucher committed Jun 6, 2021
1 parent a168816 commit 9828f63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
ENTRYPOINT ["./app", "run"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
version: "3"
version: "3.7"

services:
bot:
build: .
volumes:
- ./database.db:/root/database.db

0 comments on commit 9828f63

Please sign in to comment.