FROM alpine:latest ARG uid=1000 ARG gid=1000 RUN addgroup -g $gid idalius RUN adduser -u $uid -D -G idalius idalius RUN apk add --no-cache perl perl-dev perl-app-cpanminus make gcc libgcc wget musl-dev openssl openssl-dev zlib-dev && \ apk add --no-cache perl-config-tiny perl-html-parser perl-datetime perl-io-socket-ssl && \ cpanm install POE POE::Component::IRC && \ cpanm install -n POE::Component::SSLify && \ cpanm install Data::Munge && \ apk del --no-cache perl-dev perl-app-cpanminus make gcc libgcc wget musl-dev openssl-dev zlib-dev && \ rm -rf /root/.cpanm /var/cache/apk/* USER idalius # Expect idalius volume mounted to /idalius WORKDIR /idalius ENV PERL5LIB /idalius CMD perl ./idalius.pl