Skip to content

Commit 60c8acb

Browse files
committed
Version 1.0
1 parent 08df12e commit 60c8acb

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 3.5.2, Python3 MySQL-Connector, and mod_wsgi for py3 web server for Django." \
7+
image-version="1.0" \
8+
django-version="1.11.2" \
9+
django-localflavor-version="1.5.1" \
10+
mysql-connector-version="2.0.4"
11+
12+
RUN apt-get update && apt-get install -y apache2 \
13+
python3 \
14+
python3-pip \
15+
python3-mysql.connector \
16+
libapache2-mod-wsgi-py3 \
17+
&& apt-get clean \
18+
&& mkdir /DjangoSites \
19+
&& chmod 755 /DjangoSites \
20+
&& pip3 install --upgrade pip \
21+
&& pip3 install Django==1.11.2 \
22+
&& pip3 install django-localflavor==1.5.1
23+
24+
EXPOSE 80 443
25+
26+
ENTRYPOINT ["apache2ctl", "-D", "FOREGROUND"]

0 commit comments

Comments
 (0)