Skip to content

Commit 76b196e

Browse files
author
Sascha Nowak
authored
Merge pull request #487 from netlogix/bugfix/php-server-timezone
2 parents e3e4c4d + fef9cc8 commit 76b196e

4 files changed

Lines changed: 19 additions & 13 deletions

File tree

php/7.x.Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ ARG PHP_VERSION=7.4
55
ARG XDEBUG_VERSION=3.1.6
66

77
ENV DEBIAN_FRONTEND=noninteractive \
8-
TZ=UTC \
9-
LANG="C.UTF-8"
8+
TZ="Europe/Berlin" \
9+
LANG="C.UTF-8" \
10+
TERM=xterm-256color
1011

1112
ENV PHP_VERSION=${PHP_VERSION} \
1213
PHP_MEMORY_LIMIT=128m \
@@ -115,7 +116,8 @@ COPY config/fpm/pool.d /etc/php/${PHP_VERSION}/fpm/pool.d/
115116
COPY config/fpm-${PHP_VERSION}/pool.d /etc/php/${PHP_VERSION}/fpm/pool.d/
116117

117118
# Config files
118-
COPY dev/bash /root/
119+
COPY config/bash /root/
120+
COPY config/bash/.bashrc /etc/bash.bashrc
119121

120122
# Test php-fpm config and php info
121123
RUN php-fpm -tt
@@ -172,7 +174,6 @@ ENV PHP_ASSERT=1 \
172174
COMPOSER_CACHE_DIR=/.cache/composer/ \
173175
YARN_CACHE_FOLDER=/.cache/yarn/ \
174176
npm_config_cache=/.cache/npm/ \
175-
TERM=xterm-256color \
176177
TIDEWAYS_DAEMON=""
177178

178179
# enable debugging with PhpStorm

php/8.x.Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ ARG PHP_VERSION=8.4
66
ARG XDEBUG_VERSION=3.4.1
77

88
ENV DEBIAN_FRONTEND=noninteractive \
9-
TZ=UTC \
10-
LANG="C.UTF-8"
9+
TZ="Europe/Berlin" \
10+
LANG="C.UTF-8" \
11+
TERM=xterm-256color
1112

1213
ENV PHP_VERSION=${PHP_VERSION} \
1314
PHP_MEMORY_LIMIT=128m \
@@ -124,7 +125,8 @@ COPY config/fpm/pool.d /etc/php/${PHP_VERSION}/fpm/pool.d/
124125
COPY config/fpm-${PHP_VERSION}/pool.d /etc/php/${PHP_VERSION}/fpm/pool.d/
125126

126127
# Config files
127-
COPY dev/bash /root/
128+
COPY config/bash /root/
129+
COPY config/bash/.bashrc /etc/bash.bashrc
128130

129131
# Test php-fpm config and php info
130132
RUN php-fpm -tt
@@ -181,7 +183,6 @@ ENV PHP_ASSERT=1 \
181183
COMPOSER_CACHE_DIR=/.cache/composer/ \
182184
YARN_CACHE_FOLDER=/.cache/yarn/ \
183185
npm_config_cache=/.cache/npm/ \
184-
TERM=xterm-256color \
185186
TIDEWAYS_DAEMON=""
186187

187188
# enable debugging with PhpStorm

php/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ ARG PHP_VERSION=8.3
66
ARG XDEBUG_VERSION=3.4.1
77

88
ENV DEBIAN_FRONTEND=noninteractive \
9-
TZ=UTC \
10-
LANG="C.UTF-8"
9+
TZ="Europe/Berlin" \
10+
LANG="C.UTF-8" \
11+
TERM=xterm-256color
1112

1213
ENV PHP_VERSION=${PHP_VERSION} \
1314
PHP_MEMORY_LIMIT=128m \
@@ -120,7 +121,8 @@ COPY config/fpm/pool.d /etc/php/${PHP_VERSION}/fpm/pool.d/
120121
COPY config/fpm-${PHP_VERSION}/pool.d /etc/php/${PHP_VERSION}/fpm/pool.d/
121122

122123
# Config files
123-
COPY dev/bash /root/
124+
COPY config/bash /root/
125+
COPY config/bash/.bashrc /etc/bash.bashrc
124126

125127
# Test php-fpm config and php info
126128
RUN php-fpm -tt
@@ -177,7 +179,6 @@ ENV PHP_ASSERT=1 \
177179
COMPOSER_CACHE_DIR=/.cache/composer/ \
178180
YARN_CACHE_FOLDER=/.cache/yarn/ \
179181
npm_config_cache=/.cache/npm/ \
180-
TERM=xterm-256color \
181182
TIDEWAYS_DAEMON=""
182183

183184
# enable debugging with PhpStorm
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
# for examples
44

55
# If not running interactively, don't do anything
6-
[ -z "$PS1" ] && return
6+
case $- in
7+
*i*) ;;
8+
*) return;;
9+
esac
710

811
# don't put duplicate lines or lines starting with space in the history.
912
# See bash(1) for more options

0 commit comments

Comments
 (0)