diff --git a/.travis.yml b/.travis.yml index b69e498c..e4ac0fc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@ script: - go generate ./web ./... - ./travis/coverage.sh - gox -os "linux darwin windows" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" + - GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build # for docker before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash @@ -31,7 +32,6 @@ install: after_success: - bash <(curl -s https://codecov.io/bash) -- cp dist/selenoid-ui_linux_amd64 ./selenoid-ui deploy: - provider: releases diff --git a/Dockerfile b/Dockerfile index ed9c0aeb..6368717b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ubuntu +FROM scratch MAINTAINER Kirill Merkushev COPY selenoid-ui / EXPOSE 8080 -CMD ["/selenoid-ui"] +ENTRYPOINT ["/selenoid-ui"]