I'm building an image for Docker and it's giving me error:
ERROR: unsatisfiable constraints:
libssl-dev (missing):
required by: world[libssl-dev]
running RUN apk add libssl-dev
doesn't seem to help.
What can I do to resolve this ?
Dockerfile-dev:
FROM python:3.6.7-alpine
WORKDIR /usr/src/app
COPY ./requirements.txt /usr/src/app/requirements.txt
RUN apk add libssl-dev
RUN apk add libffi-dev
RUN apk add --update python3 python3-dev py-pip build-base
RUN pip3 install -r requirements.txt
COPY . /usr/src/app
CMD python3 manage.py run -h 0.0.0.0
Some packages are built against libressl
in Alpine 3.6. Try replacing line 6 in your Dockerfile with the following
RUN apk add libressl-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With