2022-07-22 05:11:17 +00:00
|
|
|
FROM perl:5.36
|
2021-12-31 01:52:34 +00:00
|
|
|
|
|
|
|
# Move it
|
|
|
|
WORKDIR /opt
|
|
|
|
COPY assets/ ./assets/
|
|
|
|
COPY lib/ ./lib/
|
|
|
|
COPY migrations/ ./migrations/
|
|
|
|
COPY public/ ./public/
|
|
|
|
COPY t/ ./t/
|
|
|
|
COPY templates/ ./templates/
|
2022-07-22 05:11:17 +00:00
|
|
|
COPY .tom.url .
|
2021-12-31 01:52:34 +00:00
|
|
|
COPY cpanfile .
|
|
|
|
COPY guestbook-ng.conf .
|
|
|
|
COPY guestbook-ng.pl .
|
|
|
|
|
|
|
|
# Dependency time
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y upgrade
|
|
|
|
RUN cpanm --installdeps .
|
|
|
|
|
|
|
|
# Test it
|
|
|
|
RUN prove -l -v
|
|
|
|
|
|
|
|
# Finish setting up the environment
|
|
|
|
ENV MOJO_REVERSE_PROXY=1
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
# Send it
|
2022-01-10 17:53:10 +00:00
|
|
|
CMD ["perl", "guestbook-ng.pl", "prefork", "-m", "production"]
|