-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 1.16 KB
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
FROM walterwhites/codeception_src
MAINTAINER Flo Flo contact.magician@gmail.com
# Install docker and docker-compose
RUN apt-get update -y && apt-get install -y apt-transport-https ca-certificates \
curl gnupg2 software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& apt-key fingerprint 0EBFCD88 \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
&& apt-get update -y && apt-get install docker-ce docker-ce-cli containerd.io -y
RUN curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
# Install Imagick
RUN apt-get update \
&& apt-get install -y libmagickwand-dev --no-install-recommends \
&& yes '' | pecl install -f imagick \
&& echo -e "\nextension=imagick.so" >> /usr/local/etc/php/php.ini
RUN apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql