-
Notifications
You must be signed in to change notification settings - Fork 1
/
base.Dockerfile
43 lines (37 loc) · 833 Bytes
/
base.Dockerfile
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
39
40
41
42
43
ARG version
ARG base
ARG variant=''
FROM php:${version}${variant}${base}
ADD configure.sh /usr/local/bin/configure
ADD setup.sh /usr/local/bin/setup
RUN chmod u+x /usr/local/bin/*
ENV PECL_PACKAGES \
xdebug
ENV PHP_EXTENSIONS \
zip \
pdo \
pdo_mysql \
intl \
gd \
pcntl \
bcmath \
shmop \
mbstring \
exif \
imap \
soap
ENV TOOLS_PACKAGES \
bash \
make \
wget \
curl \
git \
openssh-client
# Shellcheck setup
ADD https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz /opt/shellcheck.tar.xz
RUN cd /opt \
&& mkdir shellcheck \
&& tar --xz --extract --file shellcheck.tar.xz --directory shellcheck \
&& cp shellcheck/shellcheck-stable/shellcheck /usr/bin/ \
&& shellcheck --version \
&& rm -rf shellcheck shellcheck.tar.xz