-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
38 lines (28 loc) · 1.38 KB
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Use Debian Buster as our base.
FROM debian:buster-slim
# Update package list.
RUN apt-get update
# Install some common prerequisites.
RUN apt-get install -y -q apt-utils apt-transport-https lsb-release ca-certificates curl wget
# Install unzip as it is recommended by Composer to extract packages.
RUN apt-get install -y -q unzip
# Install git.
RUN apt-get install -y -q git
# Install Python.
RUN apt-get install -y -q python3
# Install tools for deployment.
RUN apt-get install -y -q openssh-client rsync sshpass
# Install PHP packages from deb.sury.org.
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
RUN sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
RUN apt-get update
RUN apt-get install -y -q php7.2-cli php7.2-bz2 php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-xsl php7.2-zip php7.2-mongodb php7.2-redis php7.2-solr php7.2-imagick
# Install Node.js.
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y -q nodejs
# Install Composer.
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --no-ansi --install-dir=/usr/bin --filename=composer
RUN php -r "unlink('composer-setup.php');"
# Run Composer.
CMD ["composer"]