You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 line
677 B

  1. ARG PHP_VERSION
  2. FROM php:$PHP_VERSION-alpine
  3. RUN echo "date.timezone = UTC" > /usr/local/etc/php/conf.d/etc.ini
  4. ENV TERM xterm
  5. RUN apk add --update --no-cache \
  6. libcurl \
  7. bash \
  8. curl \
  9. git \
  10. alpine-sdk \
  11. openssl-dev
  12. ENV EXT_MONGODB_VERSION=1.7.4
  13. RUN docker-php-source extract \
  14. && git clone --branch $EXT_MONGODB_VERSION --depth 1 https://github.com/mongodb/mongo-php-driver.git /usr/src/php/ext/mongodb \
  15. && cd /usr/src/php/ext/mongodb && git submodule update --init \
  16. && docker-php-ext-install mongodb
  17. RUN docker-php-ext-install bcmath
  18. COPY --from=composer /usr/bin/composer /usr/bin/composer
  19. COPY ./project /projects/main
  20. WORKDIR /projects/main