From f3226e00250aca958de8343466cd8a038ba52093 Mon Sep 17 00:00:00 2001 From: Luca Rullo Date: Sat, 17 Jun 2023 16:36:18 +0000 Subject: [PATCH] Add: Dockerfile --- Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dc81d01 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,36 @@ +FROM debian:stable-slim + +ARG PHP_VERSION=7.4 +ARG VERSION=1.7.16 + +RUN apt update && apt dist-upgrade -y + +RUN apt-get -y install lsb-release ca-certificates curl +RUN curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg +RUN sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' +RUN apt-get update + +RUN apt install -y php${PHP_VERSION} php${PHP_VERSION}-mcrypt php${PHP_VERSION}-cli php${PHP_VERSION}-gd php${PHP_VERSION}-curl php${PHP_VERSION}-mysqlnd php${PHP_VERSION}-zip php${PHP_VERSION}-fileinfo php${PHP_VERSION}-dev php${PHP_VERSION}-gmagick php${PHP_VERSION}-opcache php${PHP_VERSION}-xml php${PHP_VERSION}-mbstring php${PHP_VERSION}-redis libxmlrpc-epi0 php${PHP_VERSION}-intl php${PHP_VERSION}-xmlrpc + +RUN apt install -y composer wget tar +RUN apt install -y libapache2-mod-php${PHP_VERSION} + +RUN a2enmod rewrite alias authz_user ssl + +RUN apt install -y git + +WORKDIR /providence + +RUN wget https://github.com/collectiveaccess/providence/archive/${VERSION}.tar.gz && \ + tar xvzf ${VERSION}.tar.gz --strip-components=1 -C /providence && \ + rm ${VERSION}.tar.gz + +RUN chmod -R 777 /providence + +#RUN git clone https://github.com/collectiveaccess/providence.git /providence +#RUN php7.4 composer.phar install + + +EXPOSE 80 + +CMD apachectl -D FOREGROUND