-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
27 lines (22 loc) · 1010 Bytes
/
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
FROM php:7.4.30-apache-bullseye
ARG APP_VERSION=4.11.0
ENV URL https://github.com/opensupports/opensupports/releases/download/v${APP_VERSION}/opensupports_v${APP_VERSION}.zip
COPY fix-https-reverse-proxy.diff /var/www/html
RUN set -ex; \
apt-get update; \
apt-get install -y unzip; \
docker-php-ext-install pdo_mysql; \
docker-php-ext-install mysqli; \
apt-get install -y libc-client-dev libkrb5-dev && rm -r /var/lib/apt/lists/*; \
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
docker-php-ext-install imap; \
curl -fsSL -o opensupports.zip $URL; \
unzip opensupports.zip -d /var/www/html; \
rm -r opensupports.zip; \
a2enmod rewrite; \
chmod 777 /var/www/html/api/config.php /var/www/html/api/files; \
chmod -R 777 /var/www/html/api/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/; \
patch /var/www/html/index.php < /var/www/html/fix-https-reverse-proxy.diff;
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]