![]() we need a user with the same UID/GID with host user # so when we execute CLI commands, all the host file's ownership remains intact # otherwise command from inside container will create root-owned files and directories ARG uid RUN useradd -G www-data,root -u $uid -d /home/devuser devuser composer COPY -from=composer:latest /usr/bin/composer /usr/bin/composer # 6. start with base php config, then add extensions RUN mv " $PHP_INI_DIR /php.ini-development" " $PHP_INI_DIR /php.ini" RUN docker-php-ext-install \ htaccess extra headers like Access-Control-Allow-Origin- RUN a2enmod rewrite headers mod_rewrite for URL rewrite and mod_headers for. ![]() ![]() apache configs document root ENV APACHE_DOCUMENT_ROOT=/var/www/html/public RUN sed -ri -e 's!/var/www/html!$!g' /etc/apache2/sites-available/ *.conf development packages RUN apt-get install -y \ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |