wethepeople.win/Dockerfile
swaggboi 963b7e74f3 Some updates
- Pull latest Perl image
- Run apt updates
- Use prefork server
- Clean up Dockerfile
2021-04-17 16:21:41 -04:00

22 lines
338 B
Docker

FROM perl:5.32.1
# Move it
WORKDIR /opt
COPY public/ ./public/
COPY templates/ ./templates/
COPY wethepeople.pl .
# Upgrade
RUN apt-get update
RUN apt-get -y upgrade
# Install Mojo
RUN cpanm Mojolicious
# Set up environment
ENV MOJO_REVERSE_PROXY=1
EXPOSE 3000
# Send it
CMD ["perl", "wethepeople.pl", "prefork", "-m", "production"]