webhook2ntfy/Containerfile

20 lines
643 B
Plaintext
Raw Permalink Normal View History

2024-03-06 08:34:02 +01:00
FROM alpine
RUN apk update && apk add --no-cache tini bash ca-certificates openssl perl perl-mojolicious perl-json perl-mime-base64 perl-app-cpanminus perl-test-fatal perl-test-warnings perl-test-needs perl-uri perl-lwp-useragent-determined perl-lwp-protocol-https
2024-03-06 08:34:02 +01:00
#RUN cpanm install URI::Escape
RUN mkdir -p /opt/webhook2_ntfy/
ADD . /opt/webhook2_ntfy/
RUN chmod a+x /opt/webhook2_ntfy/script/webhook2_ntfy
WORKDIR /opt/webhook2_ntfy
RUN addgroup webhook2ntfy && adduser -D -G webhook2ntfy webhook2ntfy
ADD entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
USER webhook2ntfy
ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh"]