amp.dockerfile 692 B

1234567891011121314151617181920212223
  1. FROM ubuntu:16.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
  4. RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
  5. RUN apt-get update -yqq > /dev/null
  6. RUN apt-get install -yqq git unzip php7.2 php7.2-common php7.2-cli php7.2-dev php7.2-mbstring composer curl build-essential > /dev/null
  7. # An extension is required!
  8. # We deal with concurrencies over 1k, which stream_select doesn't support.
  9. ADD ./install-ev.sh /install-ev.sh
  10. RUN /install-ev.sh > /dev/null
  11. ADD ./ /amp
  12. WORKDIR /amp
  13. COPY deploy/conf/* /etc/php/7.2/cli/conf.d/
  14. RUN composer install --quiet
  15. CMD php /amp/vendor/bin/cluster -s /amp/server.php