Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install libssl-dev for Docker

Tags:

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
like image 581
Billy Darwin Avatar asked Mar 22 '19 19:03

Billy Darwin


1 Answers

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
like image 142
prithajnath Avatar answered Sep 21 '22 14:09

prithajnath