2021-05-31 00:57:39 -04:00
|
|
|
FROM perl:5.34.0
|
2021-03-06 21:54:51 -05:00
|
|
|
|
|
|
|
# Move it
|
|
|
|
WORKDIR /opt
|
|
|
|
COPY cgi-bin/ ./cgi-bin/
|
|
|
|
COPY public/ ./public/
|
|
|
|
COPY templates/ ./templates/
|
2021-04-15 17:35:28 -04:00
|
|
|
COPY cpanfile .
|
2021-03-06 21:54:51 -05:00
|
|
|
COPY .mmCreds.xml .
|
|
|
|
COPY .msg.bans .
|
|
|
|
COPY .name.bans .
|
2021-03-13 00:42:36 -05:00
|
|
|
COPY www-swagg.conf .
|
2021-03-06 21:54:51 -05:00
|
|
|
COPY www-swagg.pl .
|
|
|
|
|
2021-04-15 17:35:28 -04:00
|
|
|
# Dependency time
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y upgrade
|
|
|
|
RUN apt-get -y install fortune-mod ruby
|
|
|
|
RUN cpanm --installdeps .
|
|
|
|
RUN gem install cgi
|
|
|
|
|
2021-03-06 21:54:51 -05:00
|
|
|
# Finish setting up the environment
|
|
|
|
ENV MOJO_REVERSE_PROXY=1
|
2021-04-20 13:17:02 -04:00
|
|
|
ENV SERVER_ADMIN="swaggboi@slackware.uk"
|
2021-04-15 17:35:28 -04:00
|
|
|
EXPOSE 3000
|
2021-03-06 21:54:51 -05:00
|
|
|
|
|
|
|
# Send it
|
2021-04-15 17:35:28 -04:00
|
|
|
CMD ["perl", "www-swagg.pl", "prefork", "-m", "production"]
|