-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
112 lines (99 loc) · 2.76 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
103
104
105
106
107
108
109
110
111
112
##############################################################################
# Dockerfile de construcao do container APP com os pacotes basicos
##############################################################################
FROM alpine:3.21
LABEL \
org.opencontainers.image.title="Imagem docker para SEI 5 Alpine em PHP82"
RUN apk add --no-cache \
apache2 \
apache2-http2 \
gnu-libiconv \
php82-apache2 \
php82-bcmath \
php82-bz2 \
php82-calendar \
php82-ctype \
php82-curl \
php82-dom \
php82-exif \
php82-fileinfo \
php82-gd \
php82-gettext \
php82-gmp \
php82-iconv \
php82-imap \
php82-intl \
php82-ldap \
php82-mbstring \
php82-mysqli \
php82-odbc \
php82-openssl \
php82-pcntl \
php82-pdo \
php82-pdo_mysql \
php82-pdo_pgsql \
php82-pear \
php82-pecl-apcu \
php82-pecl-igbinary \
php82-pecl-mcrypt \
php82-pecl-memcache \
php82-pecl-xdebug \
php82-pgsql \
php82-phar \
php82-pspell \
php82-simplexml \
php82-sodium \
php82-shmop \
php82-snmp \
php82-soap \
php82-xml \
php82-zip \
php82-zlib \
php82-pecl-uploadprogress;
# Pacotes para o wkhtmltopdf
RUN apk add --no-cache \
libstdc++ \
libx11 \
libxrender \
libxext \
libssl3 \
ca-certificates \
fontconfig \
freetype \
ttf-dejavu \
ttf-droid \
ttf-freefont \
ttf-liberation \
# more fonts
&& apk add --no-cache --virtual .build-deps \
msttcorefonts-installer \
# Install microsoft fonts
&& update-ms-fonts \
&& fc-cache -f \
# Clean up when done
&& rm -rf /tmp/* \
&& apk del .build-deps
# wkhtmltopdf #
COPY --from=surnet/alpine-wkhtmltopdf:3.20.3-0.12.6-small \
/bin/wkhtmltopdf /bin/wkhtmltopdf
RUN apk add --no-cache openjdk8
COPY assets/sei.ini /etc/php82/conf.d/99_sei.ini
COPY assets/xdebug.ini /etc/php82/conf.d/99_xdebug.ini
COPY assets/sei.conf /etc/apache2/conf.d/
COPY assets/cron.conf /etc/crontabs/root
# 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
# Suporte para atualização do SEI. O script de atualização do SEI está fixo no bash
RUN apk add --no-cache \
bash curl;
# Suporte para módulo de assinatura avançada
RUN apk add --no-cache \
php82-tokenizer php82-xmlwriter;
# Geração de audio do captcha
# RUN apk add --no-cache ffmpeg;
COPY assets/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh ; ln -s /usr/bin/php82 /usr/bin/php
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/sh", "-c", "crond && httpd -DFOREGROUND"]