providence/Dockerfile

37 lines
1.4 KiB
Docker
Raw Permalink Normal View History

2023-06-17 18:36:18 +02:00
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