-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
81 lines (70 loc) · 2.15 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
################################################################################
# Dockerfile de construcao do container APP com os pacotes basicos
################################################################################
FROM alpine:3.13
RUN apk add --no-cache \
apache2 \
apache2-http2 \
php7-apache2 \
php7-bcmath \
php7-calendar \
php7-ctype \
php7-curl \
php7-dom \
php7-fileinfo \
php7-gd \
php7-gettext \
php7-gmp \
php7-imap \
php7-intl \
php7-ldap \
php7-mbstring \
php7-mcrypt \
php7-mysqli \
php7-odbc \
php7-pcntl \
php7-pdo \
php7-pear \
php7-pecl-apcu \
php7-pecl-mcrypt \
php7-pecl-memcache \
php7-pecl-xdebug \
php7-pgsql \
php7-pspell \
php7-shmop \
php7-snmp \
php7-soap \
php7-xdebug \
php7-xml \
php7-xmlrpc \
php7-zip \
php7-zlib \
;
# Utiliza versão 1.1.4 pois há uma segmentation fault no 1.1.3
RUN apk add --no-cache \
--repository=https://dl-cdn.alpinelinux.org/alpine/v3.14/community/ \
php7-pecl-uploadprogress;
# Pacotes para o wkhtmltopdf
RUN apk add --no-cache \
libgcc libstdc++ libx11 glib libxrender libxext libintl \
ttf-dejavu ttf-droid ttf-freefont ttf-liberation
# wkhtmltopdf #
COPY --from=madnight/docker-alpine-wkhtmltopdf:0.12.5-alpine3.13 \
/bin/wkhtmltopdf /bin/wkhtmltopdf
RUN apk add --no-cache openjdk8
COPY assets/sei.ini /etc/php7/conf.d/99_sei.ini
COPY assets/xdebug.ini /etc/php7/conf.d/99_xdebug.ini
COPY assets/sei.conf /etc/apache2/conf.d/
COPY assets/cron.conf /tmp/cron.conf
RUN cat /tmp/cron.conf >> /etc/crontabs/root
# Pasta para arquivos externos
RUN mkdir -p /var/sei/arquivos && chown 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 \
curl bash;
COPY assets/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/sh", "-c", "crond && httpd -DFOREGROUND"]