forked from tiredofit/docker-freescout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (51 loc) · 1.52 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
FROM docker.io/tiredofit/nginx-php-fpm:8.0
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
### Set Defaults
ENV FREESCOUT_VERSION=1.8.21 \
FREESCOUT_REPO_URL=https://github.com/freescout-helpdesk/freescout \
NGINX_WEBROOT=/www/html \
NGINX_SITE_ENABLED=freescout \
PHP_CREATE_SAMPLE_PHP=FALSE \
PHP_ENABLE_CURL=TRUE \
PHP_ENABLE_FILEINFO=TRUE \
PHP_ENABLE_GNUPG=TRUE \
PHP_ENABLE_ICONV=TRUE \
PHP_ENABLE_IGBINARY=TRUE \
PHP_ENABLE_IMAP=TRUE \
PHP_ENABLE_LDAP=TRUE \
PHP_ENABLE_OPENSSL=TRUE \
PHP_ENABLE_SIMPLEXML=TRUE \
PHP_ENABLE_TOKENIZER=TRUE \
PHP_ENABLE_ZIP=TRUE \
IMAGE_NAME="tiredofit/freescout" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-freescout/"
### Perform Installation
RUN set -x && \
apk update && \
apk upgrade && \
apk add -t .freescout-run-deps \
expect \
git \
gnu-libiconv \
sed \
&& \
\
### WWW Installation
php-ext enable core && \
mkdir -p /assets/install && \
git clone ${FREESCOUT_REPO_URL} /assets/install && \
cd /assets/install && \
git checkout ${FREESCOUT_VERSION} && \
rm -rf \
/assets/install/.env.example \
/assets/install/.env.travis \
&& \
composer install --ignore-platform-reqs && \
chown -R nginx:www-data /assets/install && \
\
### Cleanup
rm -rf /root/.composer && \
rm -rf /var/tmp/* /var/cache/apk/*
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
### Assets
ADD install /