-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (31 loc) · 1019 Bytes
/
Dockerfile
File metadata and controls
37 lines (31 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# https://github.com/thomaspinckney3/django-docker.git
FROM grahamdumpleton/mod-wsgi-docker:python-3.5
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
python-pip \
python-dev \
libmysqlclient-dev \
unattended-upgrades && \
rm -r /var/lib/apt/lists/*
RUN pip install --upgrade pip && pip install \
"django==1.10" \
"mysqlclient==1.3.8" \
"kafka-python<=1.0" \
"elasticsearch<3.0" \
"djangorestframework==3.6.4" \
"django-crispy-forms==1.6.1" \
"django-filter==1.0.4" \
"requests==2.18.4" \
"libsass==0.13.2" \
"django-compressor==2.2" \
"django-sass-processor==0.5.5" \
"django-redis==4.8.0" \
"django-extensions==1.9.8"
ENV LANG=en_US.UTF-8 PYTHONHASHSEED=random \
PATH=/usr/local/python/bin:/usr/local/apache/bin:$PATH \
MOD_WSGI_USER=www-data MOD_WSGI_GROUP=www-data
WORKDIR /app
# Switching from mysql-connector to mysqlclient requires that
# the database engine be changed from 'ENGINE': 'mysql.connector.django' to
# 'ENGINE': 'django.db.backends.mysql'