From c39de958ace0d6dc0abdf5667bb50a43d9930927 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Sat, 13 Jan 2024 01:10:07 -0800 Subject: initial --- http/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 http/Dockerfile (limited to 'http/Dockerfile') diff --git a/http/Dockerfile b/http/Dockerfile new file mode 100644 index 0000000..1ac00ee --- /dev/null +++ b/http/Dockerfile @@ -0,0 +1,15 @@ +FROM perl:latest AS build + +EXPOSE 3000 + +COPY . /sakisafe +COPY ./public /sakisafe/public + +WORKDIR /sakisafe + +RUN perl "Makefile.PL" +RUN make install +RUN cpan List::MoreUtils Path::Tiny MIME::Types Mojolicious Mojolicious::Plugin::RenderFile Mojolicious::Routes::Pattern + +FROM build +CMD ["perl", "sakisafe.pl", "daemon"] -- cgit v1.2.3-13-gbd6f