Skip to content

Instantly share code, notes, and snippets.

@vlas-ilya
Created December 27, 2015 11:41
Show Gist options
  • Save vlas-ilya/f297b9b4f99b238141e1 to your computer and use it in GitHub Desktop.
Save vlas-ilya/f297b9b4f99b238141e1 to your computer and use it in GitHub Desktop.
FROM mysql:5.6
ENV MYSQL_ALLOW_EMPTY_PASSWORD=yes
COPY ./mydb.sql /tmp/mydb.sql
RUN service mysql start && \
echo "CREATE DATABASE mydb DEFAULT CHARACTER SET UTF8" | mysql -uroot && \
mysql -uroot mydb < /tmp/mydb.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment