|Subject:||Installing in Perl docker build fails - Mozilla::CA not declared as a dependency|
I'm using the official perl docker image based on Debian. My Dockerfile looks like this: FROM perl:5.28 RUN cpanm Carton \ && mkdir -p /app WORKDIR /app COPY cpanfile* /app/ RUN carton install --deployment COPY . /app EXPOSE 3000 CMD ["carton", "exec", "script/app", "daemon"] My cpanfile contains this line: requires 'IO::Socket::SSL'; Whenever I run docker build -t app . I get this error for the carton install --deployment step: ! Couldn't find module or a distribution Mozilla::CA ! Installing the dependencies failed: Module 'Mozilla::CA' is not installed ! Bailing out the installation for IO-Socket-SSL-2.064. It looks like Mozilla::CA isn't declared as a dependency? I had to add it to my cpanfile, and then IO::Socket::SSL installed.