You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
927 B
49 lines
927 B
FROM php:7.4-fpm-alpine |
|
|
|
RUN apk add --update libzip-dev curl-dev &&\ |
|
apk del gcc g++ |
|
|
|
RUN apk add --no-cache \ |
|
zlib-dev \ |
|
icu-dev \ |
|
libpng-dev \ |
|
oniguruma-dev \ |
|
libpq-dev \ |
|
libpng-dev \ |
|
libzip-dev \ |
|
zip \ |
|
vim \ |
|
unzip \ |
|
git \ |
|
curl |
|
|
|
|
|
RUN rm -rf /var/cache/apk/* |
|
|
|
RUN docker-php-ext-install \ |
|
curl \ |
|
mbstring \ |
|
intl \ |
|
pdo \ |
|
pdo_pgsql \ |
|
pgsql \ |
|
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 |
|
|
|
WORKDIR /var/www/html |
|
|
|
COPY . . |
|
|
|
RUN chmod +x artisan |
|
RUN composer install --ignore-platform-reqs --prefer-dist --no-scripts --no-progress --no-interaction --no-dev --no-autoloader |
|
RUN composer dump-autoload --optimize |
|
|
|
RUN chown -R www-data:www-data . |
|
|
|
WORKDIR /home/www-data |
|
USER www-data
|
|
|