Skip to content

Instantly share code, notes, and snippets.

@dkarlovi
Created January 30, 2019 10:56
Show Gist options
  • Save dkarlovi/3cbdb20ebcd4b7dbe452561c6d56ddea to your computer and use it in GitHub Desktop.
Save dkarlovi/3cbdb20ebcd4b7dbe452561c6d56ddea to your computer and use it in GitHub Desktop.
QA Dockerfile
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