@@ -3,8 +3,8 @@ FROM jdeathe/centos-ssh:2.6.0
3
3
# Use the form ([{fqdn}-]{package-name}|[{fqdn}-]{provider-name})
4
4
ARG PACKAGE_NAME="app"
5
5
ARG PACKAGE_PATH="/opt/${PACKAGE_NAME}"
6
- ARG PACKAGE_RELEASE_VERSION="0.12 .0"
7
- ARG RELEASE_VERSION="2.2.0 "
6
+ ARG PACKAGE_RELEASE_VERSION="0.13 .0"
7
+ ARG RELEASE_VERSION="2.2.1 "
8
8
9
9
# ------------------------------------------------------------------------------
10
10
# Base install of required packages
@@ -47,9 +47,9 @@ ADD src /
47
47
# - Disable Apache default fcgid configuration; replaced with 00-fcgid.conf
48
48
# - Custom Apache configuration
49
49
# - Disable all Apache modules and enable the minimum
50
- # - Disable SSL
51
50
# - Disable the default SSL Virtual Host
52
- # - Global PHP configuration changes
51
+ # - Disable SSL
52
+ # - Add default PHP configuration overrides to 00-php.ini drop-in.
53
53
# - Replace placeholders with values in systemd service unit template
54
54
# - Set permissions
55
55
# ------------------------------------------------------------------------------
@@ -163,15 +163,19 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
163
163
/etc/php.ini \
164
164
> /etc/php.d/00-php.ini.default \
165
165
&& sed -r \
166
- -e 's~^;(user_ini.filename =)$~\1 ~g' \
167
- -e 's~^;(cgi.fix_pathinfo=1)$~\1 ~g' \
168
- -e 's~^;(date.timezone =)$~\1 UTC~g' \
169
- -e 's~^(expose_php = )On$~\1 Off~g' \
170
- -e 's~^;(realpath_cache_size = ).*$~\1 4096k~' \
171
- -e 's~^;(realpath_cache_ttl = ).*$~\1 600~' \
172
- -e 's~^;?(session.name = ).*$~\1 "${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"~' \
173
- -e 's~^;?(session.save_handler = ).*$~\1 "${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"~' \
174
- -e 's~^;?(session.save_path = ).*$~\1 "${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"~' \
166
+ -e 's~^;?(cgi.fix_pathinfo( )?=).*$~\1\2 1~g' \
167
+ -e 's~^;?(date.timezone( )?=).*$~\1\2 "${PHP_OPTIONS_DATE_TIMEZONE:-UTC}"~g' \
168
+ -e 's~^;?(expose_php( )?=).*$~\1\2 Off~g' \
169
+ -e 's~^;?(realpath_cache_size( )?=).*$~\1\2 4096k~' \
170
+ -e 's~^;?(realpath_cache_ttl( )?=).*$~\1\2 600~' \
171
+ -e 's~^;?(session.cookie_httponly( )?=).*$~\1\2 1~' \
172
+ -e 's~^;?(session.name( )?=).*$~\1\2 "${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"~' \
173
+ -e 's~^;?(session.save_handler( )?=).*$~\1\2 "${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"~' \
174
+ -e 's~^;?(session.save_path( )?=).*$~\1\2 "${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"~' \
175
+ -e 's~^;?(session.sid_bits_per_character( )?=).*$~\1\2 5~' \
176
+ -e 's~^;?(session.sid_length( )?=).*$~\1\2 64~' \
177
+ -e 's~^;?(session.use_strict_mode( )?=).*$~\1\2 1~' \
178
+ -e 's~^;?(user_ini.filename( )?=).*$~\1 ~g' \
175
179
/etc/php.d/00-php.ini.default \
176
180
> /etc/php.d/00-php.ini \
177
181
&& sed \
@@ -211,9 +215,6 @@ RUN mkdir -p -m 750 ${PACKAGE_PATH} \
211
215
&& mv \
212
216
${PACKAGE_PATH}/public \
213
217
${PACKAGE_PATH}/public_html \
214
- && rm -f \
215
- ${PACKAGE_PATH}/bin/php-wrapper \
216
- ${PACKAGE_PATH}/etc/httpd/conf.d/50-fcgid.conf \
217
218
&& $(\
218
219
if [[ -f /usr/share/php-pecl-apc/apc.php ]]; then \
219
220
cp \
@@ -224,8 +225,7 @@ RUN mkdir -p -m 750 ${PACKAGE_PATH} \
224
225
&& chown -R app:app-www ${PACKAGE_PATH} \
225
226
&& find ${PACKAGE_PATH} -type d -exec chmod 750 {} + \
226
227
&& find ${PACKAGE_PATH}/var -type d -exec chmod 770 {} + \
227
- && find ${PACKAGE_PATH} -type f -exec chmod 640 {} + \
228
- && find ${PACKAGE_PATH}/bin -type f -exec chmod 750 {} +
228
+ && find ${PACKAGE_PATH} -type f -exec chmod 640 {} +
229
229
230
230
EXPOSE 80 443 8443
231
231
0 commit comments