-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
executable file
·46 lines (35 loc) · 1.18 KB
/
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
44
45
46
#
# PHP School
# A revolutionary new way to learn PHP.
# Bring your imagination to life in an open learning eco-system.
# http://phpschool.io
#
FROM php:7-cli
LABEL authors="Michael Woodward <[email protected]>, Aydin Hassan <[email protected]>, Rafael Corrêa Gomes <[email protected]>, Shaun Hare <http://shaunhare.co.uk/>"
RUN apt-get update \
&& apt-get install -y \
apt-utils \
zip \
git \
vim \
libzip-dev \
zlib1g-dev \
&& docker-php-ext-configure zip --with-zlib-dir=/usr \
&& docker-php-ext-install -j$(nproc) zip
# Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN mkdir /phpschool
ENV PATH /root/.php-school/bin/:$PATH
# Workshop manager
RUN curl -O https://php-school.github.io/workshop-manager/workshop-manager.phar \
&& mv workshop-manager.phar /usr/local/bin/workshop-manager \
&& chmod +x /usr/local/bin/workshop-manager \
&& workshop-manager verify
WORKDIR /phpschool
# Learn You PHP!
RUN workshop-manager install learnyouphp
# Callable Functions
RUN workshop-manager install callablefunctions
# PHP7 Way
RUN workshop-manager install php7way
CMD ["bash"]