Created
July 22, 2015 01:33
-
-
Save wozozo/37512b4cbb347816d179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.4.3-onbuild | |
RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections && \ | |
echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections && \ | |
apt-get update && apt-get install -q -y \ | |
mysql-client libmysqlclient-dev \ | |
postgresql-client libpq-dev \ | |
sqlite3 \ | |
gcc \ | |
mysql-server \ | |
--no-install-recommends && rm -rf /var/lib/apt/lists/* | |
RUN sed -i -e "s/\(\[mysqld\]\)/\1\ncharacter-set-server = utf8/g" /etc/mysql/my.cnf | |
RUN sed -i -e "s/\(\[client\]\)/\1\ndefault-character-set = utf8/g" /etc/mysql/my.cnf | |
RUN sed -i -e "s/\(\[mysqldump\]\)/\1\ndefault-character-set = utf8/g" /etc/mysql/my.cnf | |
RUN sed -i -e "s/\(\[mysql\]\)/\1\ndefault-character-set = utf8/g" /etc/mysql/my.cnf | |
RUN mysqld_safe & \ | |
sleep 10 | |
EXPOSE 4567 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment