Move image building to taskfile
This commit is contained in:
@ -1,7 +1,27 @@
|
||||
FROM php:7.4.21-cli
|
||||
FROM php:8.1-cli
|
||||
|
||||
COPY ./docker/php/provision.sh /opt/
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
git \
|
||||
gnupg \
|
||||
gzip \
|
||||
libtidy-dev \
|
||||
rsync \
|
||||
zip \
|
||||
;
|
||||
|
||||
RUN /opt/provision.sh
|
||||
RUN docker-php-ext-install tidy \
|
||||
&& docker-php-ext-enable tidy
|
||||
|
||||
# Composer and required tools
|
||||
RUN curl -sLO https://getcomposer.org/download/2.8.4/composer.phar \
|
||||
&& mv composer.phar /usr/local/bin/composer \
|
||||
&& chmod +x /usr/local/bin/composer
|
||||
|
||||
|
||||
# PHP-CS-Fixer
|
||||
RUN curl -sLO https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.65.0/php-cs-fixer.phar \
|
||||
&& mv php-cs-fixer.phar /usr/local/bin/php-cs-fixer \
|
||||
&& chmod +x /usr/local/bin/php-cs-fixer
|
||||
|
||||
WORKDIR /srv/app
|
||||
|
Reference in New Issue
Block a user