-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (43 loc) · 1.25 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
53
54
FROM php:8.3-fpm
ENV TZ="Europe/Rome"
RUN apt-get update && apt-get install -y \
libpq-dev \
build-essential \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
curl \
libzip-dev \
libcurl4-gnutls-dev \
libicu-dev \
libmcrypt-dev \
libxml2-dev \
libxslt1-dev \
libssh2-1-dev \
libssh2-1 \
libssl-dev \
ssh \
wget \
libffi-dev \
cron \
rsyslog \
iputils-ping \
telnet \
nano \
default-mysql-client \
supervisor
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions
RUN install-php-extensions bcmath curl fileinfo intl json mbstring mcrypt mysqli pdo_mysql \
simplexml soap sockets xml xmlreader xmlrpc xmlwriter xsl zip ssh2 gd redis pcntl exif memcached sqlite3
COPY "utils/php/php.ini" "$PHP_INI_DIR/php.ini"
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY src /var/www/html/
WORKDIR /var/www/html/public
EXPOSE 9000
CMD ["php-fpm"]