diff options
Diffstat (limited to 'http/Dockerfile')
| -rw-r--r-- | http/Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
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"] |
