Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: unsatisfiable constraints #5

Open
grichardomi opened this issue Aug 13, 2017 · 1 comment
Open

ERROR: unsatisfiable constraints #5

grichardomi opened this issue Aug 13, 2017 · 1 comment

Comments

@grichardomi
Copy link

docker build -t my_app . gives off this error. any idea?

  • apk add --no-cache --virtual .app-builddeps nodejs=6.2.0-r0
    fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
    fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
    ERROR: unsatisfiable constraints:
    .app-builddeps-0:
    masked in: cache
    satisfies: world[.app-builddeps]
    The command '/bin/sh -c set -ex && apk add --no-cache --virtual .app-builddeps nodejs=6.2.0-r0 && mkdir -p /usr/src/app/tmp/cache && mkdir -p /usr/src/app/tmp/pids && mkdir -p /usr/src/app/tmp/sockets && DATABASE_URL=postgres://[email protected]:5432/fakedb AMQP_URL=amqp://guest:guest@amqp:5672 TWITTER_API_KEY=SOME_KEY TWITTER_API_SECRET=SOME_SECRET SECRET_KEY_BASE=10167c7f7654ed02b3557b05b88ece rails assets:precompile && echo "apk del .app-builddeps" && chown -R nobody /usr/src/app' returned a non-zero code: 2
@zealot128
Copy link

In my case, changing the nodejs version helped:

apk add --no-cache --virtual .app-builddeps nodejs=6.7.0-r1 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants