Skip to content

Commit 5f22a2e

Browse files
committed
Updated docker file
1 parent d1218b6 commit 5f22a2e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Dockerfile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,34 @@ FROM ubuntu:16.04
44
LABEL maintainer="e_ben_75-python@yahoo.com" \
55
important-stopping-note="Stop the server by running apache2ctl stop, this will keep from process hang" \
66
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" \
7+
image-version="1.1" \
88
django-version="1.11.2" \
99
django-localflavor-version="1.5.1" \
1010
mysql-connector-version="2.0.4"
1111

12+
# Copies the apache conf python script
13+
14+
COPY ./apache-site-conf.py /bin/
15+
16+
# Arguments for Apache conf file builder script if not used, they will use default settings
17+
# SITE_SERVER_NAME = ServerName
18+
# SITE_SERVER_ADMIN = ServerAdmin
19+
20+
ARG SITE_SERVER_NAME
21+
ARG SITE_SERVER_ADMIN
22+
23+
# Directory where Django Sites go
24+
25+
WORKDIR /DjangoSites
26+
1227
RUN apt-get update && apt-get install -y apache2 \
1328
python3 \
1429
python3-pip \
1530
python3-mysql.connector \
1631
libapache2-mod-wsgi-py3 \
1732
&& apt-get clean \
18-
&& mkdir /DjangoSites \
1933
&& chmod 755 /DjangoSites \
34+
&& chmod 755 /bin/apache-site-conf.py \
2035
&& pip3 install --upgrade pip \
2136
&& pip3 install Django==1.11.2 \
2237
&& pip3 install django-localflavor==1.5.1

0 commit comments

Comments
 (0)