2021-03-07 02:54:51 +00:00
|
|
|
FROM perl:5.32
|
|
|
|
|
|
|
|
# Dependency time
|
|
|
|
RUN apt-get update
|
2021-03-24 18:54:38 +00:00
|
|
|
RUN apt-get -y upgrade
|
2021-03-14 03:30:03 +00:00
|
|
|
RUN apt-get -y install fortune-mod ruby
|
2021-03-07 02:54:51 +00:00
|
|
|
RUN cpanm CGI
|
|
|
|
RUN cpanm CGI::Carp
|
|
|
|
RUN cpanm Mojolicious
|
|
|
|
RUN cpanm Mojolicious::Plugin::CGI
|
|
|
|
RUN cpanm Number::Format
|
|
|
|
RUN cpanm Regexp::Common
|
2021-03-24 18:54:38 +00:00
|
|
|
# Version 0.106 of Getopt::Long::Descriptive won't build for me; as
|
|
|
|
# it's just a dependency for WebService::Mattermost anyways let's just
|
|
|
|
# go with 0.105 since we know that works
|
2021-03-14 03:30:03 +00:00
|
|
|
RUN cpanm RJBS/Getopt-Long-Descriptive-0.105.tar.gz
|
2021-03-07 02:54:51 +00:00
|
|
|
RUN cpanm WebService::Mattermost
|
|
|
|
RUN cpanm XML::LibXML
|
2021-03-07 04:33:36 +00:00
|
|
|
RUN gem install cgi
|
|
|
|
RUN gem install ipaddress
|
2021-03-07 02:54:51 +00:00
|
|
|
|
|
|
|
# Move it
|
|
|
|
WORKDIR /opt
|
|
|
|
COPY cgi-bin/ ./cgi-bin/
|
|
|
|
COPY public/ ./public/
|
|
|
|
COPY templates/ ./templates/
|
|
|
|
COPY .mmCreds.xml .
|
|
|
|
COPY .msg.bans .
|
|
|
|
COPY .name.bans .
|
2021-03-13 05:42:36 +00:00
|
|
|
COPY www-swagg.conf .
|
2021-03-07 02:54:51 +00:00
|
|
|
COPY www-swagg.pl .
|
|
|
|
|
|
|
|
# Finish setting up the environment
|
|
|
|
ENV MOJO_REVERSE_PROXY=1
|
|
|
|
|
|
|
|
# Send it
|
|
|
|
CMD ["perl", "www-swagg.pl", "daemon", "-m", "production"]
|