Install libssl-dev for Docker
20,688
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
Author by
Billy Darwin
Updated on July 30, 2022Comments
-
Billy Darwin 5 monthsI'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-devdoesn'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-
prithajnath over 3 yearsCan you post your entire Dockerfile? -
Danila Kiver over 3 yearsWhy did you decide that the name of the package islibssl-dev? It looks like it is a dev package for openssl in Debian-based distros (packages.ubuntu.com/trusty/amd64/libssl-dev/filelist), and in Alpine it isopenssl-dev(pkgs.alpinelinux.org/…).
-
-
questionto42standswithUkraine over 1 yearlibressl-devdoes not seem to work for all settings. With an outdated postgreSQL alpine image I getERROR: Service 'xyz' failed to build: The command '/bin/sh -c apk add libressl-dev' returned a non-zero code: 2.