更新alpine镜像

This commit is contained in:
KennyLee 2021-03-03 13:57:50 +08:00
parent cfcb546667
commit 9c4818dd61
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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
# #