Skip to content
Snippets Groups Projects
Dockerfile 470 B
Newer Older
  • Learn to ignore specific revisions
  • Alexey Kuklin's avatar
    Alexey Kuklin committed
    FROM debian
    
    RUN apt-get update && apt-get install -y apache2 libapache2-mod-php7.3 php7.3-mysql php-gd php-imap php-xml php-mbstring php-intl php-apcu
    
    ADD . /var/www/html/.
    
    
    Alexey Kuklin's avatar
    .  
    Alexey Kuklin committed
    ADD ./docker/apache2-foreground /usr/local/bin/
    ADD ./docker/000-default.conf /etc/apache2/sites-available/000-default.conf 
    
    Alexey Kuklin's avatar
    Alexey Kuklin committed
    WORKDIR /var/www/html
    
    EXPOSE 80
    CMD ["apache2-foreground"]
    
    VOLUME /var/log/apache2
    VOLUME /var/lib/php/sessions
    VOLUME /var/run
    
    
    Alexey Kuklin's avatar
    Alexey Kuklin committed
    RUN rm -Rf setup && a2enmod rewrite