aboutsummaryrefslogtreecommitdiff
path: root/docker/Dockerfile
blob: 4241cab2d2b75fa5c412280789230e65dd87d5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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