question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dockerfile not build

See original GitHub issue
$ git clone https://github.com/APIs-guru/graphql-faker.git
$ cd graphql-faker
$ docker build -t graphql-faker  .
Sending build context to Docker daemon  4.304MB
Step 1/6 : FROM node:8.8.1-alpine
8.8.1-alpine: Pulling from library/node
b56ae66c2937: Pull complete 
16e68ed80c6a: Pull complete 
4818769bd05b: Pull complete 
Digest: sha256:ab9161b1be7ed90f1bcf8d483ef72f138010054732bb12a3288ec679a41f2226
Status: Downloaded newer image for node:8.8.1-alpine
 ---> 04a3ba95f191
Step 2/6 : MAINTAINER James Kyburz "james.kyburz@gmail.com"
 ---> Running in 5d8869c5a605
 ---> 8c406551f0af
Removing intermediate container 5d8869c5a605
Step 3/6 : RUN apk --no-cache add --virtual native-deps   git &&   npm install graphql-faker -g &&  npm cache clean --force &&  apk del native-deps
 ---> Running in 264c7cee5faa
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz: could not connect to server (check repositories file)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz: could not connect to server (check repositories file)
ERROR: unsatisfiable constraints:
  native-deps-0:
    masked in: cache
    satisfies: world[native-deps]
  git (missing):
    required by:
The command '/bin/sh -c apk --no-cache add --virtual native-deps   git &&   npm install graphql-faker -g &&  npm cache clean --force &&  apk del native-deps' returned a non-zero code: 2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
spawniacommented, May 3, 2018

This should be resolved through #44. Also, you do not have to build the image yourself, there is an automated build at https://hub.docker.com/r/apisguru/graphql-faker/

0reactions
IvanGoncharovcommented, May 3, 2018

Thanks @spawnia @arquio I will close this issue but feel free to reopen if you still have this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker build - Docker Documentation
The docker build command builds Docker images from a Dockerfile and a “context”. A build's context is the set of files located in...
Read more >
How do I build a dockerfile if the name of the ... - Stack Overflow
docker build -t deepak/ruby . But for a Dockerfile which is not named Dockerfile # DOCKER-VERSION 0.4.8 FROM deepak/ruby MAINTAINER Deepak ...
Read more >
Build an Image - Specify Dockerfile Location · Codefresh | Docs
How to choose a Dockerfile to build with Codefresh pipelines. Sometimes you have a project where the Dockerfile is not in the root...
Read more >
Building your Docker Image - Runnable
Check the FROM instruction in your Dockerfile. The base image name is correct, but the image tag (specified after the colon) does not...
Read more >
How to force a clean build of a Docker Image? - Tutorialspoint
When you use the Docker build command to build a Docker image, you can simply use the --no-cache option which will allow you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found