anchor.diff:              rm -rf /root/.cpanm \
                      /usr/local/share/man && \
               rm -rf t
  +
   
   RUN addgroup -S korap && \
       adduser -S kalamar -G korap && \
  
positive.code:             perl \
              perl-io-socket-ssl \
              perl-dev \
              perl-doc \
              g++ \
              make \
              wget \
              libxml2-dev \
              libxml2 \
              unzip \
              curl && \
      set -o pipefail && \
      curl -L https://cpanmin.us | perl - App::cpanminus && \
      cpanm File::ShareDir::Install \
            Cpanel::JSON::XS \
            EV \
            IO::Socket::Socks
  
  RUN cpanm https://github.com/Akron/Mojolicious-Plugin-Localize/archive/refs/tags/v0.21.tar.gz \
     https://github.com/KorAP/KorAP-XML-TEI/archive/refs/tags/v2.3.2b.tar.gz \
     https://github.com/KorAP/KorAP-XML-Krill/archive/refs/tags/v0.45.tar.gz
  
  # Install Kalamar including all dependencies
  RUN cpanm --installdeps . -M https://cpan.metacpan.org
  
  # Remove all build dependencies
  RUN apk del git \
  
negative.code: 
  CMD [ "daemon" ]
  
  LABEL description="Docker Image for Kalamar, the KorAP user frontend, including Conversion"
  
  # docker build -f Dockerfile -t korap/kalamar-conv:0.44 --target kalamar-convert .
  # docker build -f Dockerfile -t korap/kalamar:0.44 --target kalamar .
  