4

I am creating a customize Dockerfile by installing few drawing packages. I cannot install libgdiplus-dev package in Dockerfile. I have tried adding a mirror URL https://pkgs.alpinelinux.org/package/edge/testing/armhf/libgdiplus- (mirrors can be found in this URL) dev in the Dockerfile but it did not help.

FROM alpine:3.7  
RUN apk add --no-cache libgdiplus-dev  

Running above command ends me up saying

libgdiplus-dev (missing):  
required by: world[libgdiplus-dev]

2 Answers 2

7

Found it. You can install any packages by giving repository as a parameter.

FROM alpine:3.7  
RUN apk add libgdiplus-dev --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
0

If you want use develop version of packages use alpine image version edge

2
  • I am sorry. I did not get you. Could you please explain. Nov 2, 2018 at 5:51
  • @IsuruAmarathunga I think what she is saying is if you use alpine:edge the repo will be included in the image so you can just install the package.
    – M.Sameer
    Oct 28, 2019 at 22:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.