2
0

Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM ubuntu:latest
  2. LABEL maintainer="Kassapa"
  3. ENV DEBIAN_FRONTEND noninteractive
  4. # https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
  5. ARG _VERSION=3.13
  6. RUN apt update
  7. RUN apt -y install lsb-release apt-utils \
  8. debian-keyring debian-archive-keyring apt-transport-https software-properties-common curl wget gnupg
  9. RUN add-apt-repository -y ppa:ondrej/php
  10. RUN apt -y upgrade
  11. RUN apt -y install git vim locales locales-all tzdata build-essential \
  12. php${PHP_VERSION}-cli php${PHP_VERSION}-fpm \
  13. php${PHP_VERSION}-xml php${PHP_VERSION}-imap php${PHP_VERSION}-intl php${PHP_VERSION}-mbstring php${PHP_VERSION}-bcmath \
  14. php${PHP_VERSION}-bz2 php${PHP_VERSION}-zip php${PHP_VERSION}-curl php${PHP_VERSION}-gd php${PHP_VERSION}-imagick \
  15. php${PHP_VERSION}-pgsql php${PHP_VERSION}-mysql php${PHP_VERSION}-sqlite3 php${PHP_VERSION}-redis php${PHP_VERSION}-amqp
  16. RUN apt -y autoremove
  17. RUN apt -y clean
  18. RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
  19. RUN locale-gen
  20. RUN update-locale LANG=en_US.UTF-8
  21. RUN update-alternatives --set editor /usr/bin/vim.basic
  22. RUN echo "$(date -u +%4Y%m%d%H%M%S)" | tee /VERSION
  23. VOLUME /srv
  24. WORKDIR /srv
  25. CMD ["/bin/bash", "-l"]