Docker Community Forums

Share and learn in the Docker community.

Debugging a "Your image failed to build in Docker Cloud" check failure on Github PRs

docker
dockercloud

(Lpnotes) #1

Hello! I am using Docker Cloud, and I have it hooked up to a Github repository so that new PRs will trigger automatic builds. The build is succeeding, but the check on the Github PR screen fails every time with a ci/dockercloud Your image failed to build in Docker Cloud message.

Here is my Docker file (https://github.com/codebuddies/greetbot/blob/development/Dockerfile):

FROM node:8-alpine
WORKDIR /app
ENV PORT=3000
ADD package.json .
ADD src ./src
ADD test ./test
RUN npm i
CMD ["npm", "run", "start:dev"]

And the docker-compose.test.yml file:
sut:
build: .
command: npm run test

An example PR where the check has failed: github.com/codebuddies/greetbot/pull/80

When I click through the “Details” link, though the build says SUCCESS.

In the logs, the only red error messages I see are:

npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0
npm notice created a lockfile as package-lock.json. You should commit this file.

Can anyone help?