Blame view

Dockerfile 728 Bytes
b7c7a5f6   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  FROM php:apache
  
  RUN apt-get update && apt-get install -y zip libzip-dev libpng-dev \
      && docker-php-ext-install pdo_mysql gd zip \
      && rm -rf /var/lib/apt/lists/*
  
  # Composer installation.
  COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
  
  # https://getcomposer.org/doc/03-cli.md#composer-allow-superuser
  ENV COMPOSER_ALLOW_SUPERUSER=1
  RUN composer global require hirak/prestissimo --prefer-dist --no-progress --no-suggest --classmap-authoritative \
  	&& composer clear-cache
  ENV PATH="${PATH}:/root/.composer/vendor/bin"
  
  COPY . /var/www/html/
  
  # Authorize these folders to be edited
  RUN chmod -R 777 /var/www/html/storage
  RUN chmod -R 777 /var/www/html/bootstrap/cache
  
  # Allow rewrite
  RUN a2enmod rewrite