version: v4
|
|
base: docker-registry.wikimedia.org/wikimedia-stretch:latest
|
|
|
|
variants:
|
|
build:
|
|
base: docker-registry.wikimedia.org/golang:1.11.5-1
|
|
apt: {packages: [gcc, git, make]}
|
|
test:
|
|
includes: [build]
|
|
copies: [local]
|
|
runs: { insecurely: true }
|
|
builder:
|
|
command: [go, get, -u, golang.org/x/lint/golint]
|
|
entrypoint: [make, test]
|
|
prep:
|
|
includes: [build]
|
|
builder:
|
|
command: [make, blubberoid]
|
|
requirements: [.]
|
|
production:
|
|
copies:
|
|
- from: prep
|
|
source: /srv/app/blubberoid
|
|
destination: /srv/app/blubberoid
|
|
entrypoint: [./blubberoid]
|