-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (45 loc) · 1.57 KB
/
Copy pathDockerfile
File metadata and controls
53 lines (45 loc) · 1.57 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
FROM php:8.3.4-fpm
# Instala dependências do sistema + extensões PHP
RUN apt-get update && apt-get install -y \
libpq-dev \
libzip-dev \
libldap2-dev \
libssh2-1-dev \
zip \
tzdata \
curl \
gnupg \
autoconf \
gcc \
g++ \
make \
openssh-client \
git \
supervisor \
&& docker-php-ext-configure zip \
&& docker-php-ext-install pdo_pgsql zip \
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
&& docker-php-ext-install ldap \
&& git clone https://github.com/php/pecl-networking-ssh2.git /usr/src/php/ext/ssh2 \
&& docker-php-ext-install ssh2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /home/www-data \
&& chown -R www-data:www-data /home/www-data
RUN mkdir -p /var/www/.ssh \
&& chown -R www-data:www-data /var/www/.ssh \
&& chmod 700 /var/www/.ssh
COPY docker/ssh/net-gp-access /var/www/.ssh/net-gp-access
RUN chown www-data:www-data /var/www/.ssh/net-gp-access \
&& chmod 600 /var/www/.ssh/net-gp-access
# Configura timezone para America/Sao_Paulo
RUN ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata \
&& echo "date.timezone=America/Sao_Paulo" > /usr/local/etc/php/conf.d/timezone.ini
# Instala Node.js (versão LTS) e Yarn
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& corepack enable \
&& corepack prepare yarn@stable --activate
# Instala Composer oficial
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer