File tree Expand file tree Collapse file tree 4 files changed +39
-9
lines changed Expand file tree Collapse file tree 4 files changed +39
-9
lines changed Original file line number Diff line number Diff line change 6
6
- docker buildx create --name multiarch --bootstrap --use
7
7
docker:build :
8
8
env :
9
- VERSION : 5.1.18
9
+ VERSION : 5.1.21
10
10
cmds :
11
11
- docker build --platform linux/amd64,linux/arm64 --builder=multiarch -t docker.io/tanjim/mautic:install-$VERSION --target=install --push .
12
12
- docker build --platform linux/amd64,linux/arm64 --builder=multiarch -t docker.io/tanjim/mautic:console-$VERSION --target=console --push .
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type: application
18
18
# This is the chart version. This version number should be incremented each time you make changes
19
19
# to the chart and its templates, including the app version.
20
20
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21
- version : 5.1.47
21
+ version : 5.1.49
22
22
23
23
# This is the version number of the application being deployed. This version number should be
24
24
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 5
5
image :
6
6
repository : docker.io/tanjim/mautic
7
7
pullPolicy : IfNotPresent
8
- tag : " 5.1.18 "
8
+ tag : " 5.1.21 "
9
9
10
10
# existingConfigMap: ""
11
11
# ignore the following values if existingConfigMap is set
Original file line number Diff line number Diff line change 1
- FROM php:8.1-apache as core
1
+ FROM php:8.1-apache as builder
2
2
3
3
ARG MAUTIC_VERSION=5.1
4
4
@@ -47,7 +47,7 @@ RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
47
47
# Install composer
48
48
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
49
49
50
- RUN echo "memory_limit = -1" > /usr/local/etc/php/php.ini
50
+ RUN echo "memory_limit= -1" > /usr/local/etc/php/php.ini
51
51
52
52
# Install Mautic
53
53
WORKDIR /opt
@@ -61,11 +61,37 @@ RUN rm -rf var/cache/js && \
61
61
find node_modules -mindepth 1 -maxdepth 1 -not \( -name 'jquery' -or -name 'vimeo-froogaloop2' -or -name 'remixicon' \) | xargs rm -rf
62
62
RUN mv node_modules docroot/
63
63
64
- RUN cp -a /opt/mautic/. /var/www/html/
65
- WORKDIR /var/www/html
64
+ FROM php:8.1-apache as core
66
65
67
- # Clean up
68
- RUN rm -rf /opt/mautic
66
+ COPY --from=builder /usr/local/lib/php/extensions /usr/local/lib/php/extensions
67
+ COPY --from=builder /usr/local/etc/php/conf.d/ /usr/local/etc/php/conf.d/
68
+
69
+ RUN apt-get update && apt-get install --no-install-recommends -y \
70
+ libcurl4-gnutls-dev \
71
+ libc-client-dev \
72
+ libkrb5-dev \
73
+ libmcrypt-dev \
74
+ libssl-dev \
75
+ libxml2-dev \
76
+ libzip-dev \
77
+ libjpeg-dev \
78
+ libmagickwand-dev \
79
+ libpng-dev \
80
+ libgif-dev \
81
+ libtiff-dev \
82
+ libz-dev \
83
+ libpq-dev \
84
+ imagemagick \
85
+ graphicsmagick \
86
+ libwebp-dev \
87
+ libjpeg62-turbo-dev \
88
+ libxpm-dev \
89
+ libaprutil1-dev \
90
+ libicu-dev \
91
+ libfreetype6-dev \
92
+ libonig-dev \
93
+ unzip \
94
+ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && rm -rf /var/lib/apt/lists/*
69
95
70
96
# Configure PHP
71
97
ENV PHP_INI_VALUE_DATE_TIMEZONE=UTC \
@@ -76,6 +102,10 @@ ENV PHP_INI_VALUE_DATE_TIMEZONE=UTC \
76
102
77
103
COPY ./common/php.ini /usr/local/etc/php/php.ini
78
104
105
+ WORKDIR /var/www/html
106
+
107
+ COPY --from=builder --chown=www-data:www-data /opt/mautic .
108
+
79
109
COPY ./bin/ bin/
80
110
81
111
ENV APACHE_DOCUMENT_ROOT=/var/www/html/docroot
You can’t perform that action at this time.
0 commit comments