-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 736 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (20 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM php:8.3.4-fpm
# Instala dependências do sistema e extensões PHP
RUN apt-get update && apt-get install -y \
libpq-dev \
libzip-dev \
zip \
tzdata \
curl \
gnupg \
&& docker-php-ext-configure zip \
&& docker-php-ext-install pdo_pgsql zip
# 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