-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
57 lines (52 loc) · 1.59 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
ARG PHP_BASE=8.2
ARG DISTRO="alpine"
FROM docker.io/tiredofit/nginx-php-fpm:${PHP_BASE}-${DISTRO}
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
ARG LEANTIME_VERSION
ENV LEANTIME_VERSION=${LEANTIME_VERSION:-"v2.4.8"} \
LEANTIME_REPO_URL=https://github.com/Leantime/leantime \
NGINX_SITE_ENABLED=leantime \
NGINX_WEBROOT=/www/html \
PHP_ENABLE_CREATE_SAMPLE_PHP=FALSE \
PHP_ENABLE_CURL=TRUE \
PHP_ENABLE_FILEINFO=TRUE \
PHP_ENABLE_ICONV=TRUE \
PHP_ENABLE_IMAP=TRUE \
PHP_ENABLE_LDAP=TRUE \
PHP_ENABLE_OPENSSL=TRUE \
PHP_ENABLE_SIMPLEXML=TRUE \
PHP_ENABLE_TOKENIZER=TRUE \
PHP_ENABLE_XMLWRITER=TRUE \
PHP_ENABLE_ZIP=TRUE \
IMAGE_NAME="tiredofit/leantime" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-leantime/"
RUN source /assets/functions/00-container && \
set -x && \
package update && \
package upgrade && \
package install .leantime-build-deps \
git \
nodejs \
npm \
&& \
\
package install .leantime-run-deps \
expect \
gnu-libiconv \
sed \
&& \
\
php-ext enable core && \
clone_git_repo "${LEANTIME_REPO_URL}" "${LEANTIME_VERSION}" /assets/install && \
composer install && \
npm install && \
npx mix && \
rm -rf /assets/install/nginx.conf && \
chown -R "${NGINX_USER}":"${NGINX_GROUP}" /assets/install && \
\
package remove .leantime-build-deps && \
package cleanup && \
rm -rf /root/.composer \
/root/.config \
/root/.npm
COPY install /