summaryrefslogtreecommitdiff
path: root/docker/Dockerfile_django
diff options
context:
space:
mode:
authorPrabhu Ramachandran2018-01-05 15:47:05 +0530
committerGitHub2018-01-05 15:47:05 +0530
commit65ce10a9057d30e6a7e9a37926abdef97e5fdc48 (patch)
tree8cf8c7ef08b63b68013dce99faf14223c2f73764 /docker/Dockerfile_django
parentfeb295b4107a95621e9430f5c7042cfde4674cc0 (diff)
parentbbf844c6ebf9b29c436930b5d5129ebf77a3aad1 (diff)
downloadonline_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.tar.gz
online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.tar.bz2
online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.zip
Merge pull request #404 from ankitjavalkar/add-docker-compose-test
Add docker compose deployment
Diffstat (limited to 'docker/Dockerfile_django')
-rw-r--r--docker/Dockerfile_django23
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/Dockerfile_django b/docker/Dockerfile_django
new file mode 100644
index 0000000..daddc45
--- /dev/null
+++ b/docker/Dockerfile_django
@@ -0,0 +1,23 @@
+FROM ubuntu:16.04
+
+MAINTAINER FOSSEE <pythonsupport@fossee.in>
+
+RUN apt-get update -y && apt-get install git python3-pip vim libmysqlclient-dev sudo -y
+
+RUN apt-get install apache2 libapache2-mod-wsgi-py3 python3-django -y && mkdir -p /Sites/online_test
+
+VOLUME /Sites/online_test
+
+ADD Files/requirements-* /tmp/
+
+RUN cd /Sites/online_test && pip3 install -r /tmp/requirements-py3.txt
+
+ADD Files/000-default.conf /etc/apache2/sites-enabled/
+
+ADD Files/Docker-script.sh /Sites/Docker-script.sh
+
+EXPOSE 80
+
+WORKDIR /Sites/online_test
+
+CMD [ "/bin/bash" , "/Sites/Docker-script.sh" ]