|
|
@ -1,25 +1,37 @@ |
|
|
|
FROM php:7.4-fpm-alpine |
|
|
|
FROM php:7.4-fpm-alpine |
|
|
|
|
|
|
|
|
|
|
|
RUN apk add --update libzip-dev curl-dev &&\ |
|
|
|
RUN apk add --update libzip-dev curl-dev &&\ |
|
|
|
apk del gcc g++ |
|
|
|
apk del gcc g++ |
|
|
|
|
|
|
|
|
|
|
|
RUN apk add --no-cache \ |
|
|
|
RUN apk add --no-cache \ |
|
|
|
zlib-dev \ |
|
|
|
zlib-dev \ |
|
|
|
icu-dev \ |
|
|
|
icu-dev \ |
|
|
|
libpng-dev \ |
|
|
|
libpng-dev \ |
|
|
|
oniguruma-dev \ |
|
|
|
oniguruma-dev \ |
|
|
|
libpq-dev |
|
|
|
libpq-dev \ |
|
|
|
|
|
|
|
libpng-dev \ |
|
|
|
|
|
|
|
libzip-dev \ |
|
|
|
|
|
|
|
zip \ |
|
|
|
|
|
|
|
vim \ |
|
|
|
|
|
|
|
unzip \ |
|
|
|
|
|
|
|
git \ |
|
|
|
|
|
|
|
curl |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN rm -rf /var/cache/apk/* |
|
|
|
RUN rm -rf /var/cache/apk/* |
|
|
|
|
|
|
|
|
|
|
|
RUN docker-php-ext-install \ |
|
|
|
RUN docker-php-ext-install \ |
|
|
|
curl \ |
|
|
|
curl \ |
|
|
|
mbstring \ |
|
|
|
mbstring \ |
|
|
|
intl \ |
|
|
|
intl \ |
|
|
|
pdo \ |
|
|
|
pdo \ |
|
|
|
pdo_pgsql \ |
|
|
|
pdo_pgsql \ |
|
|
|
pgsql \ |
|
|
|
pgsql \ |
|
|
|
tokenizer |
|
|
|
tokenizer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Install Extensions |
|
|
|
|
|
|
|
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
|
|
|
|
|
|
|
|
|
|
@ -28,8 +40,8 @@ WORKDIR /var/www/html |
|
|
|
COPY . . |
|
|
|
COPY . . |
|
|
|
|
|
|
|
|
|
|
|
RUN chmod +x artisan |
|
|
|
RUN chmod +x artisan |
|
|
|
#RUN composer install --ignore-platform-reqs --prefer-dist --no-scripts --no-progress --no-interaction --no-dev --no-autoloader |
|
|
|
RUN composer install --ignore-platform-reqs --prefer-dist --no-scripts --no-progress --no-interaction --no-dev --no-autoloader |
|
|
|
#RUN composer dump-autoload --optimize |
|
|
|
RUN composer dump-autoload --optimize |
|
|
|
|
|
|
|
|
|
|
|
RUN chown -R www-data:www-data . |
|
|
|
RUN chown -R www-data:www-data . |
|
|
|
|
|
|
|
|
|
|
|