Select Git revision
-
Andrej Ramašeuski authoredAndrej Ramašeuski authored
Dockerfile 1.07 KiB
FROM php:7-apache-bullseye
LABEL maintainer="andrej.ramaseuski@pirati.cz"
ARG VERSION=2.0.4
ARG REPO=https://github.com/mettle/sendportal.git
# Install requirements
RUN apt-get update && apt-get -y --no-install-recommends install \
libsodium-dev \
libsodium23 \
libzip-dev \
libzip4 \
libpq-dev \
libpq5 \
npm \
git \
&& rm -rf /var/lib/apt/lists/*
# Install PHP plugins
RUN docker-php-ext-install pcntl sodium zip pgsql pdo pdo_pgsql
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Download and unpack sendportal
# RUN curl -sL "${APP}" | tar -xzC /var/www/html
RUN cd /var/www/html && git clone --depth 1 ${REPO}
# Install SendPortal and its dependencies
RUN cd /var/www/html/sendportal && \
composer install
RUN chown -R www-data /var/www/html/sendportal/storage && \
a2enmod rewrite && \
sed -i "s#www/html#www/html/sendportal/public#" /etc/apache2/sites-available/000-default.conf
COPY entrypoint.sh entrypoint.sh
EXPOSE 443
ENTRYPOINT ["/var/www/html/entrypoint.sh"]
CMD ["apache2-foreground"]