-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (34 loc) · 882 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y apache2 \
build-essential \
curl \
git \
libapache2-mod-wsgi-py3 \
libmysqlclient-dev \
python3-dev \
python3-pip
RUN ln /usr/bin/pip3 /usr/bin/pip
RUN pip install --upgrade pip
RUN pip install virtualenv
ADD scripts/* /scripts/
ADD configs/* /configs/
RUN chmod -R 700 /scripts/
RUN /scripts/installvenv.sh
RUN /scripts/installawscli.sh
#RUN /scripts/installdjango.sh
RUN /scripts/modapache2.sh
#Deploy my code first (Folder creation stuff)
RUN /scripts/setupssh.sh
RUN /scripts/deploy.sh
#RUN mkdir djangoproject
#WORKDIR djangoproject
#RUN pwd
#RUN virtualenv mysiteenv
#RUN source /mysiteenv/bin/activate
#RUN django-admin.py startproject myproject
#RUN /usr/local/bin/virtualenvwrapper.sh
EXPOSE 8080
#CMD ["/bin/bash"]
#CMD ["/scripts/startenv.sh"]
CMD ["apache2ctl", "-D", "FOREGROUND"]