Add Dockerfile

This commit is contained in:
swaggboi 2021-03-06 21:54:51 -05:00
parent b89af7fc4c
commit 55ce37e05f

30
Dockerfile Normal file
View File

@ -0,0 +1,30 @@
FROM perl:5.32
# Dependency time
RUN apt-get update
RUN apt-get -y install --install-suggests fortune-mod
RUN cpanm CGI
RUN cpanm CGI::Carp
RUN cpanm Mojolicious
RUN cpanm Mojolicious::Plugin::CGI
RUN cpanm Number::Format
RUN cpanm Regexp::Common
RUN cpanm WebService::Mattermost
RUN cpanm XML::LibXML
# Move it
WORKDIR /opt
COPY cgi-bin/ ./cgi-bin/
COPY public/ ./public/
COPY templates/ ./templates/
COPY .counts .
COPY .mmCreds.xml .
COPY .msg.bans .
COPY .name.bans .
COPY www-swagg.pl .
# Finish setting up the environment
ENV MOJO_REVERSE_PROXY=1
# Send it
CMD ["perl", "www-swagg.pl", "daemon", "-m", "production"]