mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
更新alpine镜像
This commit is contained in:
parent
cfcb546667
commit
9c4818dd61
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.12
|
FROM alpine:3.13
|
||||||
|
|
||||||
MAINTAINER kennylee <kennylee26@gmail.com>
|
MAINTAINER kennylee <kennylee26@gmail.com>
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ RUN apk --no-cache update && \
|
|||||||
apk --no-cache add curl bash tzdata tar unzip && \
|
apk --no-cache add curl bash tzdata tar unzip && \
|
||||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||||
echo "Asia/Shanghai" > /etc/timezone && \
|
echo "Asia/Shanghai" > /etc/timezone && \
|
||||||
echo -ne "Alpine Linux 3.12 image. (`uname -rsv`)\n" >> /root/.built && \
|
echo -ne "Alpine Linux 3.13 image. (`uname -rsv`)\n" >> /root/.built && \
|
||||||
rm -fr /tmp/* /var/cache/apk/*
|
rm -fr /tmp/* /var/cache/apk/*
|
||||||
|
|
||||||
# Define bash as default command
|
# Define bash as default command
|
||||||
|
@ -11,7 +11,7 @@ RUN apk --no-cache update && \
|
|||||||
apk --no-cache add curl bash tzdata tar unzip && \
|
apk --no-cache add curl bash tzdata tar unzip && \
|
||||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||||
echo "Asia/Shanghai" > /etc/timezone && \
|
echo "Asia/Shanghai" > /etc/timezone && \
|
||||||
echo -ne "Alpine Linux 3.9 image. (`uname -rsv`)\n" >> /root/.built && \
|
echo -ne "Alpine Linux 3.12 image. (`uname -rsv`)\n" >> /root/.built && \
|
||||||
rm -fr /tmp/* /var/cache/apk/*
|
rm -fr /tmp/* /var/cache/apk/*
|
||||||
|
|
||||||
# Define bash as default command
|
# Define bash as default command
|
||||||
|
@ -12,6 +12,12 @@ slow_query_log_file = /var/log/mysql/mysql-slow-queries.log
|
|||||||
# 超过定义为慢查询
|
# 超过定义为慢查询
|
||||||
long_query_time = 4
|
long_query_time = 4
|
||||||
|
|
||||||
|
explicit_defaults_for_timestamp
|
||||||
|
init_connect = 'SET collation_connection = utf8_unicode_ci'
|
||||||
|
init_connect = 'SET NAMES utf8'
|
||||||
|
character-set-server = utf8
|
||||||
|
collation-server = utf8_unicode_ci
|
||||||
|
|
||||||
# 日志输出方式
|
# 日志输出方式
|
||||||
#log_output = FILE,TABLE
|
#log_output = FILE,TABLE
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user