add docker-compose
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
755f81cb04
commit
d4553d3b59
|
@ -1 +1,4 @@
|
|||
.env
|
||||
.env
|
||||
build/ci/.env
|
||||
butler
|
||||
build/ci/butler
|
||||
|
|
|
@ -24,3 +24,9 @@ POSTGRES_URL_CONNECT=postgresql://user:password@hos:port/db?sslmode=disable
|
|||
```sh
|
||||
go run cmd/butler/main.go
|
||||
```
|
||||
|
||||
### Сборка
|
||||
|
||||
```sh
|
||||
GOOS=linux GOARCH=arm go build -o butler cmd/butler/main.go
|
||||
```
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
FROM scratch
|
||||
COPY butler /
|
||||
CMD [ "./butler" ]
|
||||
COPY .env /
|
||||
CMD [ "/butler" ]
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
version: "3.3"
|
||||
|
||||
services:
|
||||
|
||||
butler:
|
||||
container_name: butler
|
||||
build:
|
||||
context: ../build/ci
|
||||
dockerfile: Dockerfile
|
||||
command: /butler
|
Loading…
Reference in New Issue