wethepeople.win/Dockerfile

22 lines
338 B
Docker
Raw Normal View History

FROM perl:5.32.1
# Move it
2021-01-23 00:51:51 -05:00
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
2021-01-23 19:51:11 -05:00
ENV MOJO_REVERSE_PROXY=1
EXPOSE 3000
# Send it
CMD ["perl", "wethepeople.pl", "prefork", "-m", "production"]