diff options
author | David Phillips <david@sighup.nz> | 2019-06-22 11:17:59 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-06-22 11:17:59 +1200 |
commit | 8e5111ef08d3b093a6923f19db7022e55ce5416b (patch) | |
tree | 8aa11cf152f3bb94eff4ce1f471ed0cd36db6964 | |
download | idalius-docker-8e5111ef08d3b093a6923f19db7022e55ce5416b.tar.xz |
Initial
-rw-r--r-- | Dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..16d1f6f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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 |