www2.0/Dockerfile

31 lines
617 B
Docker
Raw Normal View History

2022-08-21 23:52:32 -04:00
FROM perl:5.36
2021-03-06 21:54:51 -05:00
# Move it
WORKDIR /opt
COPY cgi-bin/ ./cgi-bin/
COPY public/ ./public/
2021-12-10 17:47:47 -05:00
COPY t/ ./t/
2021-03-06 21:54:51 -05:00
COPY templates/ ./templates/
COPY cpanfile .
2021-03-13 00:42:36 -05:00
COPY www-swagg.conf .
2021-03-06 21:54:51 -05:00
COPY www-swagg.pl .
# Dependency time
RUN apt-get update
RUN apt-get -y upgrade
2023-07-23 00:26:42 -04:00
RUN apt-get -y install fortune-mod ruby-dev fortunes-bofh-excuses \
fortunes-mario fortunes-min fortunes
RUN cpanm --installdeps .
RUN gem install cgi
2021-12-10 17:47:47 -05:00
# Test it
#RUN prove -l -v
2021-12-10 17:47:47 -05:00
2021-03-06 21:54:51 -05:00
# Finish setting up the environment
ENV MOJO_REVERSE_PROXY=1
ENV SERVER_ADMIN="swaggboi@slackware.uk"
EXPOSE 3000
2021-03-06 21:54:51 -05:00
# Send it
CMD ["perl", "www-swagg.pl", "prefork", "-m", "production"]