diff options
author | rohmhatre | 2017-11-26 00:25:02 +0530 |
---|---|---|
committer | ankitjavalkar | 2018-01-04 11:37:20 +0530 |
commit | 0713c60a5ad4b71d4a2050d13cf30afaf37d935b (patch) | |
tree | c7cb207ab05a2197fd8bdd13d1d559345a2b29ef /docker/Dockerfile_django | |
parent | 6f2e29a067cbeaf88b8ea478bb7c24fe8772180a (diff) | |
download | online_test-0713c60a5ad4b71d4a2050d13cf30afaf37d935b.tar.gz online_test-0713c60a5ad4b71d4a2050d13cf30afaf37d935b.tar.bz2 online_test-0713c60a5ad4b71d4a2050d13cf30afaf37d935b.zip |
Added docker compose configuration
Diffstat (limited to 'docker/Dockerfile_django')
-rw-r--r-- | docker/Dockerfile_django | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docker/Dockerfile_django b/docker/Dockerfile_django new file mode 100644 index 0000000..6b87afb --- /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 vim 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" ] |