add docker-compose
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-08-14 02:58:16 +07:00
parent 755f81cb04
commit d4553d3b59
4 changed files with 22 additions and 2 deletions

5
.gitignore vendored
View File

@ -1 +1,4 @@
.env .env
build/ci/.env
butler
build/ci/butler

View File

@ -24,3 +24,9 @@ POSTGRES_URL_CONNECT=postgresql://user:password@hos:port/db?sslmode=disable
```sh ```sh
go run cmd/butler/main.go go run cmd/butler/main.go
``` ```
### Сборка
```sh
GOOS=linux GOARCH=arm go build -o butler cmd/butler/main.go
```

View File

@ -1,3 +1,4 @@
FROM scratch FROM scratch
COPY butler / COPY butler /
CMD [ "./butler" ] COPY .env /
CMD [ "/butler" ]

10
deploy/docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3.3"
services:
butler:
container_name: butler
build:
context: ../build/ci
dockerfile: Dockerfile
command: /butler