Skip to content

Documentation image build fails with unsatisfied constraints error #39

@yaroslav-shabalin

Description

@yaroslav-shabalin

Seems that latest Alpine image doesn't have some dependency packages. Changing py2-pip to py3-pip and python-dev to python3-dev respectively resolves the issue.

-> docker build . -f DockerfileDocs -t python-keycloak-client-docs
Sending build context to Docker daemon  559.1kB
Step 1/10 : FROM alpine:latest
latest: Pulling from library/alpine
df20fa9351a1: Pull complete
Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Status: Downloaded newer image for alpine:latest
 ---> a24bb4013296
Step 2/10 : RUN apk --no-cache add   py2-pip   python-dev   make   git   gcc   alpine-sdk
 ---> Running in e54edacaf9d3
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  py2-pip (missing):
    required by: world[py2-pip]
  python-dev (missing):
    required by: world[python-dev]
The command '/bin/sh -c apk --no-cache add   py2-pip   python-dev   make   git   gcc   alpine-sdk' returned a non-zero code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions