|
|
|
FROM php:7.4-fpm |
|
|
|
|
|
ENV COMPOSER_ALLOW_SUPERUSER=1 |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
libpng-dev \ |
|
libjpeg-dev \ |
|
libfreetype6-dev \ |
|
libzip-dev \ |
|
libonig-dev \ |
|
libxml2-dev \ |
|
libcurl4-openssl-dev \ |
|
libicu-dev \ |
|
unzip \ |
|
git \ |
|
zlib1g-dev \ |
|
libxslt-dev \ |
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ |
|
&& docker-php-ext-install gd zip pdo pdo_mysql mysqli \ |
|
&& pecl install xdebug-3.0.4 \ |
|
&& docker-php-ext-enable xdebug \ |
|
&& apt-get clean \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer |
|
|
|
|
|
WORKDIR /var/www |
|
|
|
|
|
COPY . /var/www |
|
|
|
|
|
|
|
|
|
RUN ls |
|
|
|
RUN composer install |
|
|
|
|
|
RUN php artisan key:generate |
|
|
|
|
|
RUN php artisan bagisto:install |
|
RUN php artisan migrate |
|
RUN php artisan db:seed |
|
RUN php artisan vendor:publish --all |
|
RUN php artisan storage:link |
|
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["php-fpm"] |
|
|