-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
80 lines (70 loc) · 2.06 KB
/
Copy pathDockerfile
File metadata and controls
80 lines (70 loc) · 2.06 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
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
80
FROM phpdockerio/php73-fpm:latest
MAINTAINER "Hugo Fabricio" <[email protected]>
# Copy files
# COPY nginx.conf /etc/nginx/conf.d/default.conf
# COPY start.sh /start.sh
# COPY nginx.conf /etc/nginx/nginx.conf
# COPY supervisord.conf /etc/supervisord.conf
COPY site.conf /etc/nginx/sites-available/default.conf
# Fix debconf warnings upon build
ARG DEBIAN_FRONTEND=noninteractive
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
locales \
php-memcached \
php7.3-mysql \
php7.3-pgsql \
php-redis \
php7.3-sqlite3 \
php-xdebug \
php7.3-bcmath \
php7.3-bz2 \
php7.3-dba \
php7.3-enchant \
php7.3-gd \
php-gearman \
php7.3-gmp \
php-igbinary \
php-imagick \
php7.3-imap \
php7.3-interbase \
php7.3-intl \
php7.3-ldap \
php-mongodb \
php-msgpack \
php7.3-odbc \
php7.3-phpdbg \
php7.3-pspell \
php-raphf \
php7.3-recode \
php7.3-snmp \
php7.3-soap \
php-ssh2 \
php7.3-sybase \
php-tideways \
php7.3-tidy \
php7.3-xmlrpc \
php7.3-xsl \
php-yaml \
php-zmq && \
apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Configure PHP
RUN sed -i "/post_max_size = .*/c\post_max_size = 100M" /etc/php/7.3/fpm/php.ini && \
sed -i "/upload_max_filesize = .*/c\upload_max_filesize = 108M" /etc/php/7.3/fpm/php.ini
# Install git
# RUN apt-get update \
# && apt-get -y install git \
# && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install composer
# RUN php -r "copy('http://getcomposer.org/installer', 'composer-setup.php');" && \
# php composer-setup.php --install-dir=/usr/bin --filename=composer && \
# php -r "unlink('composer-setup.php');"
# Update locale
RUN locale-gen "pt_BR.UTF-8"
RUN update-locale LANG="pt_BR.UTF-8" LANGUAGE="pt_BR.UTF-8" LC_ALL="pt_BR.UTF-8"
# Update timezone
RUN unlink /etc/localtime
RUN ln -s /usr/share/zoneinfo/America/Recife /etc/localtime
# Set workdir
WORKDIR "/application"