www2.0/Dockerfile

33 lines
604 B
Docker
Raw Normal View History

FROM perl:5.34.0
2021-03-07 02:54:51 +00:00
# Move it
WORKDIR /opt
COPY cgi-bin/ ./cgi-bin/
COPY public/ ./public/
2021-12-10 22:47:47 +00:00
COPY t/ ./t/
2021-03-07 02:54:51 +00:00
COPY templates/ ./templates/
COPY cpanfile .
2021-03-07 02:54:51 +00:00
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 .
# 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-12-10 22:47:47 +00:00
# Test it
RUN prove -l -v
2021-03-07 02:54:51 +00:00
# Finish setting up the environment
ENV MOJO_REVERSE_PROXY=1
ENV SERVER_ADMIN="swaggboi@slackware.uk"
EXPOSE 3000
2021-03-07 02:54:51 +00:00
# Send it
CMD ["perl", "www-swagg.pl", "prefork", "-m", "production"]