Dockerfile 561 B

123456789101112131415161718192021222324
  1. FROM php:apache
  2. RUN apt-get update && apt-get install -y \
  3. libfreetype6-dev \
  4. libjpeg62-turbo-dev \
  5. libpng-dev \
  6. wget \
  7. zip \
  8. unzip && \
  9. # We install and enable php-gd
  10. docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ &&\
  11. docker-php-ext-install -j$(nproc) gd && \
  12. # We enable Apache's mod_rewrite
  13. a2enmod rewrite
  14. # Copy app content
  15. COPY . /var/www/html
  16. # Copy start script
  17. COPY docker/entrypoint.sh /
  18. VOLUME /var/www/html/data
  19. CMD /entrypoint.sh