-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (39 loc) · 1.12 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
FROM php:7.0-apache
RUN a2enmod rewrite
RUN apt-get update -qq && apt-get install -y -qq \
libicu-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libcurl4-openssl-dev \
software-properties-common \
libcurl3 curl \
git \
zip \
unzip \
inotify-tools
RUN apt-get update -qq && apt-get install -y -qq \
build-essential \
libxml2-dev libxslt1-dev zlib1g-dev \
git \
mysql-client \
sshpass \
nano \
sudo \
vim \
graphviz \
netcat-openbsd
RUN docker-php-ext-install iconv mcrypt mbstring \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd \
&& docker-php-ext-install zip \
&& docker-php-ext-install curl \
&& docker-php-ext-install intl \
&& docker-php-ext-install pdo \
&& docker-php-ext-install pdo_mysql
COPY src /var/www/html/
ADD /start.sh /home/root/start.sh
RUN chmod 777 /home/root/start.sh
CMD /home/root/start.sh
EXPOSE 80