Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description
FROM php:7.0.6-alpine

RUN curl -A 'Docker' -o /tmp/blackfire-probe.tar.gz -D - -L -s \
    && tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
    && mv /tmp/blackfire-*.so `php -r "echo ini_get('extension_dir');"`/ \
    && echo "" > $PHP_INI_DIR/conf.d/blackfire.ini \
    && echo "blackfire.agent_socket=tcp://blackfire:8707" >> $PHP_INI_DIR/conf.d/blackfire.ini

# Trigger php startup error
RUN php -v

# See the file exists, but root isnt owner
RUN ls -lah `php -r "echo ini_get('extension_dir');"`

# Try chown to root
RUN chown root:root /usr/local/lib/php/extensions/no-debug-non-zts-20151012/

# Error persists
RUN php -v

# Try ldd -d (it fails)
RUN ldd -d /usr/local/lib/php/extensions/no-debug-non-zts-20151012/ || true

# Try ldd
RUN ldd /usr/local/lib/php/extensions/no-debug-non-zts-20151012/ || true

# User ids
RUN id root
RUN id www-data
Docker Pull Command

Comments (0)