diff --git a/.travis.yml b/.travis.yml index 0c5b9784..bc9d31c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,8 @@ addons: script: - set -e -- make test +- make test-fmt +- make test-codegen - go test -race -coverprofile=coverage.txt -covermode=atomic ./pkg/controller/ - make build diff --git a/Dockerfile b/Dockerfile index a1275615..b33e1bc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,17 +13,17 @@ RUN GIT_COMMIT=$(git rev-list -1 HEAD) && \ FROM alpine:3.8 -RUN addgroup -S app \ - && adduser -S -g app app \ +RUN addgroup -S flagger \ + && adduser -S -g flagger flagger \ && apk --no-cache add ca-certificates -WORKDIR /home/app +WORKDIR /home/flagger COPY --from=0 /go/src/github.com/stefanprodan/flagger/flagger . -RUN chown -R app:app ./ +RUN chown -R flagger:flagger ./ -USER app +USER flagger ENTRYPOINT ["./flagger"]