-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 864 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 864 Bytes
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
FROM debian:latest
# Noninteractive installs
RUN apt-get clean && \
apt-get update && \
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# System environment setup
ENV HOME=/root \
DEBIAN_FRONTEND=noninteractive
# Configure common tools
RUN apt-get install -y \
vim \
curl \
wget \
unzip \
git;
# PHP
RUN apt-get install -y apt-transport-https lsb-release ca-certificates && \
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/php.list && \
apt-get update && \
apt-get install -y php7.2-cli php7.2-zip php7.2-xml php7.2-mbstring;
ADD composer.sh /root/composer.sh
RUN /root/composer.sh && \
mv composer.phar /usr/local/bin/composer;