26 lines
858 B
Docker
Raw Normal View History

2022-07-04 14:22:55 +02:00
FROM php:7.4
2018-04-24 15:25:06 +02:00
MAINTAINER Conjecto <contact@conjecto.com>
RUN apt-get update && apt-get install -y \
2022-07-04 14:22:55 +02:00
--no-install-recommends git zip zlib1g-dev wget libzip-dev
2018-04-24 15:25:06 +02:00
RUN docker-php-ext-install -j$(nproc) zip
COPY app/ /var/app/
WORKDIR /var/app/
# install composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
2018-10-19 19:42:23 +02:00
RUN \
EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig) && \
php -r "if (hash_file('SHA384', 'composer-setup.php') === '${EXPECTED_SIGNATURE}') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');"
2018-04-24 15:25:06 +02:00
# install vendors
2022-12-08 18:33:41 +01:00
ENV COMPOSER_ALLOW_SUPERUSER=1
2018-04-24 15:25:06 +02:00
RUN php composer.phar install
# run server
2018-10-19 19:42:23 +02:00
CMD ["php", "-S", "0.0.0.0:80", "-t", "/var/app/www"]