# Fallback only — see go-Dockerfile's header comment for the general
# rule. Simplified from the real php-Dockerfile. Assumes a standard
# composer-based repo served by Apache.
FROM php:${version}-apache
WORKDIR /var/www/html
RUN docker-php-ext-install pdo pdo_mysql
COPY . .
RUN if [ -f composer.json ]; then \
      curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
      composer install --no-dev --optimize-autoloader; \
    fi
EXPOSE 80
