Dockerfile/alpine-mysql/Dockerfile

22 lines
500 B
Docker
Raw Normal View History

2019-12-05 03:16:47 +00:00
FROM ehlxr/alpine
# ehlxr/alpine-mysql
LABEL maintainer="ehlxr.me@gmail.com"
2019-12-05 03:16:47 +00:00
# ENV TZ "Asia/Shanghai"
2018-07-06 07:11:14 +00:00
WORKDIR /app
VOLUME /data
2019-12-05 03:16:47 +00:00
# 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 \
2018-07-06 07:11:14 +00:00
&& rm -rf /var/cache/apk/*
COPY my.cnf /etc/mysql/my.cnf
COPY startup.sh /startup.sh
EXPOSE 3306
2018-07-06 07:11:14 +00:00
CMD ["/startup.sh"]