gliderlabs / docker-alpine

Alpine Linux Docker image. Win at minimalism!
http://gliderlabs.viewdocs.io/docker-alpine
BSD 2-Clause "Simplified" License
5.7k stars 528 forks source link

Buildings Mono In Alpine with Jenkins error #556

Open luismanuelmontoro opened 3 years ago

luismanuelmontoro commented 3 years ago

Hello, I´m trying to compile this image.

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine3.12

RUN echo "Install GnuPg, ca-certificates and add Mono repo" 

RUN apk add --no-cache mono --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing && \
    apk add --no-cache --virtual=.build-dependencies ca-certificates && \
    cert-sync /etc/ssl/certs/ca-certificates.crt && \
    apk del .build-dependencies

And i having this error, can you help me?

Error: System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: /usr/lib/../lib/libmono-native.so assembly:<unknown assembly> type:<unknown type> member:(null)

luismanuelmontoro commented 3 years ago

I find the error in the cert-sync /etc/ssl/certs/ca-certificates.crt but i dont know how to solved