-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (36 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
44 lines (36 loc) · 1.08 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
FROM php:8.4-fpm
ENV TZ=America/Fortaleza
# Copia o código da aplicação para o contêiner
COPY . /var/www/html
# Instala o Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html
RUN apt-get update && apt-get install -y \
git \
nano \
curl \
supervisor \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libonig-dev \
libzip-dev \
libpq-dev \
unzip \
zip \
libxml2-dev \
libpq-dev \
libicu-dev \
ca-certificates \
xz-utils \
gnupg \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd \
&& docker-php-ext-install pdo pdo_pgsql pgsql mbstring exif pcntl bcmath opcache intl zip sockets \
&& /usr/bin/composer install \
&& rm -rf /var/lib/apt/lists/* \
&& chown -R www-data:www-data /var/www/html
COPY ./docker/production/supervisor/conf.d/* /etc/supervisor/conf.d/
COPY ./docker/production/supervisor/supervisord.conf /etc/supervisor/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
EXPOSE 9000