blob: 16d1f6fad70006c8338ceab88e1dfedcf28ced6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
FROM alpine:latest
RUN addgroup -g 1006 idalius
RUN adduser -u 1004 -D -G idalius idalius
# Intermediate tools used to build perl modules not provided as apk
RUN apk add perl perl-dev perl-app-cpanminus make gcc libgcc wget musl-dev openssl openssl-dev zlib-dev
# Perl modules used by idalius
RUN apk add perl-config-tiny perl-html-parser perl-datetime
# Build and install POE and POE::Component::IRC modules
RUN cpanm install POE POE::Component::IRC
RUN cpanm install -n POE::Component::SSLify
# Remove non-runtime deps
RUN apk del perl-dev perl-app-cpanminus make gcc libgcc wget musl-dev
# Remove unneeded caches etc
RUN rm -rf /root/.cpanm /var/cache/apk/*
USER idalius
# Expect idalius volume mounted to /idalius
WORKDIR /idalius
ENV PERL5LIB /idalius
CMD perl ./idalius.pl
|