The successor to my homepage. Hold on to your butts. http://swagg.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
www2.0/Dockerfile

29 lines
551 B

FROM perl:5.36
# Move it
WORKDIR /opt
COPY cgi-bin/ ./cgi-bin/
COPY public/ ./public/
COPY t/ ./t/
COPY templates/ ./templates/
COPY cpanfile .
COPY www-swagg.conf .
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
# Test it
RUN prove -l -v
# Finish setting up the environment
ENV MOJO_REVERSE_PROXY=1
ENV SERVER_ADMIN="swaggboi@slackware.uk"
EXPOSE 3000
# Send it
CMD ["perl", "www-swagg.pl", "prefork", "-m", "production"]