@@ -3,11 +3,11 @@ FROM ubuntu:16.04
33
44LABEL maintainer="e_ben_75-python@yahoo.com" \
55 important-stopping-note="Stop the server by running apache2ctl stop, this will keep from process hang" \
6- description="This is a base Apache2, Python 3.5.2, Python3 MySQL-Connector , and mod_wsgi for py3 web server for Django." \
6+ description="This is a base Apache2, Python 3.5.2, Python3 mysqlclient , and mod_wsgi for py3 web server for Django." \
77 image-version="1.1" \
88 django-version="1.11.2" \
99 django-localflavor-version="1.5.1" \
10- mysql-connector- version="2.0.4 "
10+ mysqlclient- version="1.3.10 "
1111
1212# Copies the apache conf python script
1313
@@ -27,14 +27,15 @@ WORKDIR /DjangoSites
2727RUN apt-get update && apt-get install -y apache2 \
2828 python3 \
2929 python3-pip \
30- python3-mysql.connector \
30+ libmysqlclient-dev \
3131 libapache2-mod-wsgi-py3 \
3232 && apt-get clean \
3333 && chmod 755 /DjangoSites \
3434 && chmod 755 /bin/apache-site-conf.py \
3535 && pip3 install --upgrade pip \
3636 && pip3 install Django==1.11.2 \
37- && pip3 install django-localflavor==1.5.1
37+ && pip3 install django-localflavor==1.5.1 \
38+ && pip3 install mysqlclient==1.3.10
3839
3940EXPOSE 80 443
4041
0 commit comments