Skip to content

Commit c35445b

Browse files
Merge pull request laradock#1015 from ardziej/patch-1
Set Timezone
2 parents 72198ed + bbea2f0 commit c35445b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

mysql/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ FROM mysql:5.7
22

33
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
44

5+
#####################################
6+
# Set Timezone
7+
#####################################
8+
9+
ARG TZ=UTC
10+
ENV TZ ${TZ}
11+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
12+
513
RUN chown -R mysql:root /var/lib/mysql/
614

715
ADD my.cnf /etc/mysql/conf.d/my.cnf

0 commit comments

Comments
 (0)