-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (36 loc) · 1.22 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
47
48
49
50
51
52
#PHP - Apache
FROM php:7.3-apache
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
RUN apt update && apt install -y unzip && apt install nano
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get install -y tzdata \
&& ln -fs /usr/share/zoneinfo/America/Fortaleza /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
RUN apt-get -y update \
&& apt-get install -y libicu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& docker-php-ext-install sockets pcntl
#install some base extensions
RUN apt-get install -y \
libzip-dev \
zip \
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-install zip
RUN docker-php-ext-install mysqli pdo_mysql
COPY src/ /var/www/html/
COPY ./vhost/ /etc/apache2/sites-available/
RUN a2enmod rewrite
RUN a2enmod headers
RUN a2enmod ssl
# Install Composer
# Install Composer
RUN php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer
RUN service apache2 restart
#coloca um padrão melhor para memory do PHP
RUN cd /usr/local/etc/php/conf.d/ && \
echo 'memory_limit = 2048M' >> /usr/local/etc/php/conf.d/docker-php-ram-limit.ini
#
# Expose port 80
EXPOSE 80