Skip to content

Commit 768a986

Browse files
committed
Version 1.1
1 parent 0f4005f commit 768a986

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,6 @@ ENV/
9999

100100
# mypy
101101
.mypy_cache/
102+
103+
# No Files Ending in Tilde
104+
*~

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Base Apache2 Server for Running Django Apps
2+
FROM ubuntu:16.04
3+
4+
LABEL maintainer="e_ben_75-python@yahoo.com" \
5+
important-stopping-note="Stop the server by running apache2ctl stop, this will keep from process hang" \
6+
description="This is a base Apache2, Python 2.7.12, Python MySQL-python, and mod_wsgi web server for Django." \
7+
image-version="1.1" \
8+
django-version="1.11.2" \
9+
django-localflavor-version="1.5.1" \
10+
mysql-python-version="1.2.5"
11+
12+
RUN apt-get update && apt-get install -y apache2 \
13+
python \
14+
python-pip \
15+
python-dev \
16+
libmysqlclient-dev \
17+
libapache2-mod-wsgi \
18+
&& apt-get clean \
19+
&& mkdir /DjangoSites \
20+
&& chmod 755 /DjangoSites \
21+
&& pip install --upgrade pip \
22+
&& pip install Django==1.11.2 \
23+
&& pip install django-localflavor==1.5.1 \
24+
&& pip install MySQL-python
25+
26+
EXPOSE 80 443
27+
28+
ENTRYPOINT ["apache2ctl", "-D", "FOREGROUND"]

0 commit comments

Comments
 (0)