From: Clifton Palmer Date: Thu, 13 Jun 2019 18:06:24 +0000 (-0500) Subject: Initial version of dockerfile X-Git-Tag: 1.0.0~17 X-Git-Url: http://git.purplebirdman.com/public.git/commitdiff_plain/af76d89a927c5df28052445fb0f209f27b2f195c Initial version of dockerfile --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f67711c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM httpd:2.4 + +RUN apt-get update -y && \ + apt-get -y install make gcc perl && \ + cpan -i File::Spec File::Path + +RUN mkdir -p /usr/local/apache2/htdocs/public diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ea933f2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + app: + build: . + image: cliftonpalmer/public + volumes: + - /storage:/storage + - ./public:/root/public + environment: + - PUBLIC_ROOT_DIR=/storage/Art/art by me + - PUBLIC_LINK_DIR=/usr/local/apache2/htdocs/public + - PUBLIC_HTTP_URI=http://99.198.222.253/public + ports: + - 80:80 diff --git a/public b/public index 0ecf6d8..2dd2481 100755 --- a/public +++ b/public @@ -36,7 +36,8 @@ sub addFiles { my $name = shift or die "Need filename!\n"; - opendir DIR, $root_dir; + opendir DIR, $root_dir + or die $!; my @files = grep /$name/i, readdir(DIR); closedir DIR;