-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
101 lines (79 loc) · 1.77 KB
/
Dockerfile.dev
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Elegimos la versión de PHP8.1 con Debian Bulleye como base
FROM php:8.1-fpm-bullseye
ARG UNAME=www-data
ARG UGROUP=www-data
ARG UID=1000
ARG GID=1000
RUN usermod --uid $UID $UNAME
RUN groupmod --gid $GID $UGROUP
# Installing dependencies for the PHP modules
RUN apt-get update && \
apt-get install -y zip libzip-dev libpng-dev libfreetype-dev libjpeg62-turbo-dev unzip wget
# Installing initial PHP extensions
RUN docker-php-ext-install gd
RUN docker-php-ext-install mysqli pdo pdo_mysql gd zip
# Installing curl extension
RUN apt-get install -y libcurl4-openssl-dev
RUN docker-php-ext-install curl
# Installing xml extension
RUN apt-get install -y libxml2-dev
RUN docker-php-ext-install xml
## Installing xdebug extension
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
# Extensiones presentes:
# root@4ebc99e84da5:/var/www/html# php -m
# [PHP Modules]
#Core
#ctype
#curl
#date
#dom
#fileinfo
#filter
#ftp
#gd
#hash
#iconv
#json
#libxml
#mbstring
#mysqli
#mysqlnd
#openssl
#pcre
#PDO
#pdo_mysql
#pdo_sqlite
#Phar
#posix
#readline
#Reflection
#session
#SimpleXML
#sodium
#SPL
#sqlite3
#standard
#tokenizer
#xdebug
#xml
#xmlreader
#xmlwriter
#zip
#zlib
#
#[Zend Modules]
#Xdebug
RUN docker-php-ext-install intl
RUN docker-php-ext-install soap
RUN docker-php-ext-install exif
RUN docker-php-ext-install opcache
RUN chmod 777 /var/www
# instalando composer
# Descargar e instalar Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# poner un php.ini de desarrollo
# RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
# poner un php.ini de producción
# RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"