www2.0/Dockerfile

30 lines
551 B
Docker
Raw Normal View History

2022-05-06 14:22:35 +00:00
FROM perl:5.34
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-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-dev
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"]