hid/Containerfile

29 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2024-02-02 13:33:38 +01:00
FROM alpine
2024-02-02 14:25:05 +01:00
RUN apk update && apk add --no-cache tini bash perl-dev perl-test-leaktrace perl-yaml perl-yaml-tiny perl-moose \
perl-datetime perl-text-markdown perl-text-template perl-html-template \
perl-app-cpanminus perl-module-build perl-test-requires perl-params-validate \
perl-data-printer perl-data-page perl-log-log4perl perl-yaml-libyaml \
perl-plack perl-path-tiny perl-template-toolkit perl-html-parser perl-xml-parser \
perl-capture-tiny perl-test-needs perl-moosex perl-data-dump perl-module-build-xsutil \
perl-net-ssleay perl-xml-libxml perl-io-socket-ssl perl-alien-libxml2 perl-xml-xpath \
perl-xml-rss perl-timedate perl-time-hires perl-test-mocktime-hires perl-test-mocktime \
perl-datetime-format-strptime perl-datetime-format-iso8601 perl-datetime-hires\
perl-text-bibtex perl-mouse perl-mailtools make gcc musl-dev
2024-02-02 13:33:38 +01:00
2024-02-02 14:25:05 +01:00
# Devel::PPPort wont install
RUN cpanm install Text::Xslate || cat /root/.cpanm/work/*/build.log
RUN cpanm install HiD --force || true
2024-02-02 13:33:38 +01:00
RUN cpanm install HiD::Generator::BibtexPage
2024-02-02 15:15:38 +01:00
RUN cpanm install Log::Dispatch::Screen
2024-02-02 13:33:38 +01:00
2024-02-02 14:25:05 +01:00
ADD scripts/plugin.sh /plugin.sh
2024-02-02 13:33:38 +01:00
RUN chmod +x /plugin.sh
# add a user for running imapfilter in the container
RUN addgroup hid && adduser -D -G hid hid
# run everything as the hid user
USER hid
ENTRYPOINT ["/sbin/tini", "--", "/plugin.sh"]