add docker file
This commit is contained in:
parent
06dd8d13e5
commit
c4eccbfbd9
3 changed files with 17 additions and 2 deletions
15
http/Dockerfile
Normal file
15
http/Dockerfile
Normal file
|
@ -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"]
|
|
@ -4,7 +4,7 @@ use ExtUtils::MakeMaker;
|
||||||
|
|
||||||
WriteMakefile(
|
WriteMakefile(
|
||||||
NAME => 'sakisafe',
|
NAME => 'sakisafe',
|
||||||
PREREQ_PM => {
|
CONFIGURE_REQUIRES => {
|
||||||
"Mojolicious" => 0,
|
"Mojolicious" => 0,
|
||||||
"List::MoreUtils" => 0,
|
"List::MoreUtils" => 0,
|
||||||
"Term::ANSIColor" => 0,
|
"Term::ANSIColor" => 0,
|
||||||
|
|
|
@ -129,7 +129,7 @@ app->start;
|
||||||
|
|
||||||
# Index template
|
# Index template
|
||||||
|
|
||||||
#By default Mojolicious gets the "directory root" from the "public"
|
# By default Mojolicious gets the "directory root" from the "public"
|
||||||
# directory, so the css and the favicon from the "public" directory,
|
# directory, so the css and the favicon from the "public" directory,
|
||||||
# in the root of this repo.
|
# in the root of this repo.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue