11FROM docker.io/tiredofit/nginx-php-fpm:8.0
22LABEL maintainer="Dave Conroy (github.com/tiredofit)"
33
4- # ## Set Defaults
54ENV FREESCOUT_VERSION=1.8.29 \
65 FREESCOUT_REPO_URL=https://github.com/freescout-helpdesk/freescout \
76 NGINX_WEBROOT=/www/html \
@@ -21,8 +20,8 @@ ENV FREESCOUT_VERSION=1.8.29 \
2120 IMAGE_NAME="tiredofit/freescout" \
2221 IMAGE_REPO_URL="https://github.com/tiredofit/docker-freescout/"
2322
24- # ## Perform Installation
25- RUN set -x && \
23+ RUN source /assets/functions/00-container && \
24+ set -x && \
2625 apk update && \
2726 apk upgrade && \
2827 apk add -t .freescout-run-deps \
@@ -32,20 +31,14 @@ RUN set -x && \
3231 sed \
3332 && \
3433 \
35- # ## WWW Installation
3634 php-ext enable core && \
37- mkdir -p /assets/install && \
38- git clone ${FREESCOUT_REPO_URL} /assets/install && \
39- cd /assets/install && \
40- git checkout ${FREESCOUT_VERSION} && \
35+ clone_git_repo ${FREESCOUT_REPO_URL} ${FREESCOUT_VERSION} /assets/install && \
4136 rm -rf \
4237 /assets/install/.env.example \
4338 /assets/install/.env.travis \
4439 && \
4540 composer install --ignore-platform-reqs && \
46- chown -R nginx:www-data /assets/install && \
47- \
48- # ## Cleanup
41+ chown -R ${NGINX_USER}:${NGINX_GROUP} /assets/install && \
4942 rm -rf /root/.composer && \
5043 rm -rf /var/tmp/* /var/cache/apk/*
5144
0 commit comments