forked from withsocial/docker-build
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (36 loc) · 1 KB
/
Dockerfile
File metadata and controls
43 lines (36 loc) · 1 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Dockerfile for WithSocial.com builds and any other PHP/Composer based project
FROM debian:jessie
MAINTAINER Ben Sampson <ben@myns.co>
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
git \
zip \
unzip \
sudo
ADD https://packages.sury.org/php/apt.gpg /etc/apt/trusted.gpg.d/php.gpg
RUN echo "deb https://packages.sury.org/php/ jessie main" > /etc/apt/sources.list.d/php.list
RUN apt-get update && \
apt-get install -y \
php7.1-fpm \
php7.1-cli \
php7.1-mbstring \
php7.1-xml \
php7.1-zip \
php7.1-curl \
php7.1-intl \
php7.1-gd \
php7.1-sqlite3 \
php7.1-mysql \
php7.1-pgsql \
php7.1-xdebug \
rubygems
RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && \
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
php -r "unlink('composer-setup.php');"
# Is this good?
RUN php -v && \
git --version && \
composer --version