fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
428 B

  1. FROM alpine:3.9
  2. RUN apk add --no-cache mariadb mariadb-client mariadb-server-utils && \
  3. rm -f /var/cache/apk/*
  4. ## Required by mysql-backup
  5. RUN apk add --no-cache bash gzip && \
  6. rm -f /var/cache/apk/*
  7. RUN mkdir -p /run/mysqld && \
  8. chown -R mysql:mysql /run/mysqld
  9. RUN sed -i "s|.*bind-address\s*=.*|bind-address=0.0.0.0|g" /etc/my.cnf.d/mariadb-server.cnf
  10. COPY src/ /
  11. EXPOSE 3306
  12. ENTRYPOINT ["/entrypoint.sh"]