update at 2019-12-05 11:16:47 by ehlxr

This commit is contained in:
2019-12-05 11:16:47 +08:00
parent 5f7cb4fd7c
commit 47e6a88413
3 changed files with 19 additions and 14 deletions

View File

@@ -1,14 +1,18 @@
FROM alpine:latest
FROM ehlxr/alpine
# ehlxr/alpine-mysql
LABEL maintainer="ehlxr.me@gmail.com"
ENV TZ "Asia/Shanghai"
# ENV TZ "Asia/Shanghai"
WORKDIR /app
VOLUME /data
RUN apk add --update --no-cache mysql mysql-client tzdata \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
# RUN apk add --update --no-cache mysql mysql-client tzdata \
# && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
# && echo ${TZ} > /etc/timezone \
# && rm -rf /var/cache/apk/*
RUN apk add --update --no-cache mysql mysql-client \
&& rm -rf /var/cache/apk/*
COPY my.cnf /etc/mysql/my.cnf