swaggboi
963b7e74f3
- Pull latest Perl image - Run apt updates - Use prefork server - Clean up Dockerfile
22 lines
338 B
Docker
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"]
|