2020-12-17 13:02:10 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
2021-04-07 17:28:03 +00:00
|
|
|
ARG PHP_VERSION
|
|
|
|
|
2020-12-17 13:02:10 +00:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
bash \
|
|
|
|
ca-certificates \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
mariadb-client \
|
|
|
|
ncurses \
|
|
|
|
nodejs \
|
2022-03-04 04:01:16 +00:00
|
|
|
pnpm \
|
2020-12-17 13:02:10 +00:00
|
|
|
subversion \
|
|
|
|
unzip \
|
2021-04-07 17:28:03 +00:00
|
|
|
wget
|
2022-03-04 04:01:16 +00:00
|
|
|
|
|
|
|
COPY install-php-version.sh /tmp/
|
2021-04-07 17:28:03 +00:00
|
|
|
RUN chmod u+x /tmp/install-php-version.sh && /tmp/install-php-version.sh
|
2020-12-17 13:02:10 +00:00
|
|
|
|
|
|
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
|
RUN php composer-setup.php --install-dir=/usr/bin --filename=composer
|
|
|
|
RUN php -r "unlink('composer-setup.php');"
|
|
|
|
|
|
|
|
RUN curl -sL https://phar.phpunit.de/phpunit-7.phar > /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit
|
|
|
|
|
|
|
|
VOLUME ["/app"]
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|