-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
37 lines (28 loc) · 944 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
# Nereid Project
#
# VERSION 3.4.0.1
FROM openlabs/tryton:3.4
MAINTAINER Prakash Pandey <[email protected]>
RUN apt-get -y update
# Add node js repo to ppa
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get -y update
# * Setup psycopg2 since you want to connect to postgres
# database
RUN apt-get -y -q install python-dev libpq-dev python-gevent python-psycopg2 gunicorn nodejs git-core
RUN npm install -g bower
# Install angular app
ADD . /opt/nereid-project/
WORKDIR /opt/nereid-project/ng-app
RUN bower install --allow-root
# Setup the module since it is a required for this
# custom setup
WORKDIR /opt/nereid-project/
RUN pip install -r requirements.txt
VOLUME /var/lib/trytond
# Remove the existing trytond.conf
RUN rm /etc/trytond.conf
EXPOSE 8000 9000
CMD ["-b", "0.0.0.0:9000", "-", "-k", "gevent", "-w", "4", "application:app"]
ENTRYPOINT ["gunicorn"]