www2.0/Dockerfile
swaggboi 2e6630eff9 Misc tweaks
- Added some documentation finally
- Implemented cpanfile
- Cleaned up Dockerfile
- Use prefork server instead of daemon
2021-04-15 17:35:28 -04:00

29 lines
549 B
Docker

FROM perl:5.32.1
# Move it
WORKDIR /opt
COPY cgi-bin/ ./cgi-bin/
COPY public/ ./public/
COPY templates/ ./templates/
COPY cpanfile .
COPY .mmCreds.xml .
COPY .msg.bans .
COPY .name.bans .
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
RUN cpanm --installdeps .
RUN gem install cgi
RUN gem install ipaddress
# Finish setting up the environment
ENV MOJO_REVERSE_PROXY=1
EXPOSE 3000
# Send it
CMD ["perl", "www-swagg.pl", "prefork", "-m", "production"]