forked from dtzinov/ggrc-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-clean
42 lines (37 loc) · 1.03 KB
/
Dockerfile-clean
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
FROM phusion/baseimage
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get update \
&& apt-get install -y \
curl \
fabric \
git-core \
make \
mysql-client \
nodejs \
python-imaging \
python-mysqldb \
python-pip \
python-pycurl \
python-virtualenv \
unzip \
vim \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
COPY ./provision/docker/vagrant.bashrc /root/.bashrc
WORKDIR /vagrant
# Javascript dependencies
COPY ./package.json ./bower.json /vagrant-dev/
RUN cd /vagrant-dev \
&& npm install \
&& node_modules/.bin/bower --allow-root install
# Python packages
COPY ./Makefile /vagrant/
COPY ./src/requirements*.txt /vagrant/src/
COPY ./bin/init_env ./bin/setup_linked_packages.py /vagrant/bin/
COPY ./extras /vagrant/extras
RUN make setup_dev DEV_PREFIX=/vagrant-dev \
&& make appengine_sdk DEV_PREFIX=/vagrant-dev \
&& make appengine_packages DEV_PREFIX=/vagrant-dev \
&& rm /vagrant-dev/opt/google_appengine_1.9.3.zip
CMD bash -c 'tail -f bin/init_env'