-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
102 lines (91 loc) · 2.88 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
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
102
################################################################################
# Dockerfile de construcao do container APP com os pacotes basicos
################################################################################
FROM almalinux:9
LABEL \
org.opencontainers.image.title="Imagem docker para SEI 5 em php"
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm; \
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm; \
dnf module install -y php:remi-8.2
RUN dnf --enablerepo=crb install -y aspell
RUN dnf install -y \
php-mbstring \
php-bcmath \
php-bz2 \
php-calendar \
php-ctype \
php-curl \
php-dom \
php-exif \
php-fileinfo \
php-gd \
php-gettext \
php-gmp \
php-iconv \
php-imap \
php-intl \
php-ldap \
php-mbstring \
php-mysqli \
php-odbc \
php-openssl \
php-pcntl \
php-pdo \
php-pear \
php-pecl-apcu \
php-pecl-igbinary \
php-pecl-mcrypt \
php-pecl-memcache \
php-pecl-xdebug \
php-pgsql \
php-phar \
php-pspell \
php-simplexml \
php-sodium \
php-shmop \
php-snmp \
php-soap \
php-xml \
php-zip \
php-zlib \
php-pecl-uploadprogress; \
dnf install -y \
httpd \
xorg-x11-fonts-75dpi \
xorg-x11-fonts-Type1 \
libpng \
libjpeg \
openssl \
icu \
libX11 \
libXext \
libXrender; \
dnf install -y wget ; \
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm ; \
dnf install -y ./wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm; \
rm -f ./wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm; \
dnf install -y glibc-locale-source; \
dnf install -y java-1.8.0-openjdk; \
dnf clean all;
COPY assets/sei.ini /etc/php.d/99_sei.ini
COPY assets/sei.ini /etc/php-fpm.d/99_sei.ini
COPY assets/xdebug.ini /etc/php.d/99_xdebug.ini
COPY assets/sei.conf /etc/httpd/conf.d/
# Pasta para arquivos externos
RUN mkdir -p /var/sei/arquivos && chown -R apache.apache /var/sei/arquivos && chmod 777 /tmp
RUN mkdir -p /var/log/sei && mkdir -p /var/log/sip
RUN sed -e 's/127.0.0.1:9000/9000/' \
-e '/allowed_clients/d' \
-e '/catch_workers_output/s/^;//' \
-e '/error_log/d' \
-e 's/;clear_env = no/clear_env = no/' \
-i /etc/php-fpm.d/www.conf
RUN mkdir -p /run/php-fpm
RUN localedef pt_BR -i pt_BR -f ISO-8859-1 ; \
localedef pt_BR.ISO-8859-1 -i pt_BR -f ISO-8859-1 ; \
localedef pt_BR.ISO8859-1 -i pt_BR -f ISO-8859-1
ADD assets/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8000
CMD ["bash", "-c", "php-fpm && httpd -DFOREGROUND"]