Created
January 30, 2019 10:56
-
-
Save dkarlovi/3cbdb20ebcd4b7dbe452561c6d56ddea to your computer and use it in GitHub Desktop.
QA Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG BUILD_VERSION | |
FROM example.com/app:${BUILD_VERSION} | |
# copy QA tools from a known source | |
COPY --from=jakzal/phpqa:alpine /tools /tools/ | |
COPY --from=jakzal/phpqa:alpine /usr/bin/composer /tools/ | |
RUN apk add --update --no-cache \ | |
curl \ | |
openssl \ | |
php7-phar \ | |
php7-phpdbg \ | |
php7-yaml \ | |
php7-zip \ | |
&& rm -f /etc/php7/conf.d/*xdebug* \ | |
&& echo "memory_limit=-1" >> /etc/php7/conf.d/zz-php_memory_limit.ini \ | |
&& echo "opcache.enable_cli=1" >> /etc/php7/conf.d/ext-opcache.ini | |
ENV PATH "${PATH}:/tools:/tools/.composer/vendor-bin/phpstan/vendor/phpstan/phpstan/bin" | |
CMD ["sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment