1
0

Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. FROM ubuntu:focal
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. # PHP
  4. RUN apt-get update -y
  5. RUN apt-get install --no-install-recommends -y \
  6. php7.4 \
  7. php7.4-gd \
  8. php7.4-zip \
  9. php7.4-curl \
  10. php7.4-xml \
  11. php7.4-mbstring \
  12. php7.4-sqlite \
  13. php7.4-xdebug \
  14. php7.4-pgsql \
  15. php7.4-intl \
  16. php7.4-imagick \
  17. php7.4-gmp \
  18. php7.4-apcu \
  19. php7.4-bcmath \
  20. libmagickcore-6.q16-3-extra \
  21. curl \
  22. vim \
  23. lsof \
  24. make \
  25. nodejs \
  26. npm
  27. RUN echo "xdebug.remote_enable = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
  28. RUN echo "xdebug.remote_autostart = 1" >> /etc/php/7.4/cli/conf.d/20-xdebug.ini
  29. # Docker
  30. RUN apt-get -y install \
  31. apt-transport-https \
  32. ca-certificates \
  33. curl \
  34. gnupg-agent \
  35. software-properties-common
  36. RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
  37. RUN add-apt-repository \
  38. "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
  39. $(lsb_release -cs) \
  40. stable"
  41. RUN apt-get update -y
  42. RUN apt-get install -y docker-ce docker-ce-cli containerd.io
  43. RUN ln -s /var/run/docker-host.sock /var/run/docker.sock