summaryrefslogtreecommitdiff
path: root/http/Dockerfile
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2024-01-13 01:10:07 -0800
committerTyler Hoang <tyler@tylerhoang.xyz>2024-01-13 01:10:07 -0800
commitc39de958ace0d6dc0abdf5667bb50a43d9930927 (patch)
treef756c50e9ed36a79b76eef911969cd76285093ea /http/Dockerfile
initial
Diffstat (limited to 'http/Dockerfile')
-rw-r--r--http/Dockerfile15
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"]