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.
 
 

29 lines
579 B

FROM registry.sindominio.net/debian
# Default variables
ENV HOME_DIR /var/lib/mysql
ENV MYSQL_DATABASE mysql
ENV MYSQL_USER mysql
ENV MYSQL_PASSWORD mysql
RUN apt-get update && \
apt-get -qy install mariadb-server default-mysql-client sed &&\
apt-get clean
COPY 50-server.cnf /etc/mysql/mariadb.conf.d/50-server.cnf
RUN set -e; \
mkdir /run/mysqld; \
chmod 777 /run/mysqld
COPY docker-entrypoint.sh /usr/local/bin/
RUN ["chmod", "+x", "/usr/local/bin/docker-entrypoint.sh"]
VOLUME /var/lib/mysql
EXPOSE 3306
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["mysqld"]