-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-php-apache
79 lines (61 loc) · 1.85 KB
/
Dockerfile-php-apache
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM php:7.4.33-apache
RUN apt-get update && \
apt upgrade --yes
RUN apt-get update && \
apt-get install --yes \
cron g++ gettext libicu-dev openssl \
libc-client-dev libkrb5-dev \
libxml2-dev libfreetype6-dev \
libgd-dev libmcrypt-dev bzip2 \
libpng-dev libjpeg-dev libonig-dev \
libbz2-dev libtidy-dev libcurl4-openssl-dev \
libz-dev libmemcached-dev libxslt-dev git-core libpq-dev \
libzip4 libzip-dev libwebp-dev libsodium-dev \
locales
# Set locales
RUN sed -i -e 's/# es_AR.UTF-8 UTF-8/es_AR.UTF-8 UTF-8/' /etc/locale.gen
RUN dpkg-reconfigure --frontend=noninteractive locales
ENV LC_ALL es_AR.UTF-8
ENV LANG es_AR.UTF-8
ENV LANGUAGE es_AR.UTF-8
# Set timezone
RUN rm /etc/localtime
RUN echo "America/Argentina/Buenos_Aires" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
RUN "date"
# Pcntl docker-ext
COPY ./config/docker-php-ext-pcntl.ini /usr/local/etc/php/conf.d/.
# PHP extensions
RUN docker-php-ext-install \
gd curl mbstring xml zip json opcache pgsql sodium pcntl
# PDO
RUN docker-php-ext-install \
pdo pdo_pgsql
# Apcu extension
RUN printf "no" | pecl install apcu && \
docker-php-ext-enable apcu
# Extra extensions
RUN apt-get update && \
apt-get install --yes \
git vim unzip
# Composer
RUN curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/bin/composer
# Subversion
RUN apt-get update && \
apt-get install subversion --yes
# Graphviz
RUN apt-get update && \
apt-get install graphviz --yes
# Java
RUN apt-get update && \
apt-get install default-jdk --yes
# Apache Configuration
RUN a2enmod rewrite
RUN a2enmod setenvif
WORKDIR /usr/local/proyectos/
# npm, yarn & yui-compressor
RUN apt-get update && \
apt-get install --yes \
nodejs npm && \
npm install --global yarn --yes && \
npm install --global yuicompressor --yes