summaryrefslogtreecommitdiff
path: root/docker/Dockerfile_django
blob: daddc453b7a717f8063e9a0ad2ede3f4590f548c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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" ]