mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-29 16:50:12 +02:00
Dockerfile optimizations
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,9 +1,6 @@
|
||||
FROM php:7.4-apache
|
||||
LABEL maintainer="Chris Kankiewicz <Chris@ChrisKankiewicz.com>"
|
||||
|
||||
COPY .docker/apache/config/000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
RUN apt-get update && apt-get install --assume-yes libmemcached-dev libzip-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -11,6 +8,9 @@ RUN docker-php-ext-install zip \
|
||||
&& pecl install memcached redis xdebug \
|
||||
&& docker-php-ext-enable memcached redis xdebug
|
||||
|
||||
RUN a2enmod rewrite
|
||||
COPY .docker/apache/config/000-default.conf /etc/apache2/sites-available/000-default.conf
|
||||
COPY .docker/php/config/php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
WORKDIR /var/www/html
|
||||
ENV PATH="app/vendor/bin:${PATH}"
|
||||
|
||||
RUN a2enmod rewrite
|
||||
|
Reference in New Issue
Block a user