-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (43 loc) · 1010 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
45
46
47
48
49
FROM ubuntu:14.04
MAINTAINER Odoo S.A. <[email protected]>
USER root
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y sudo
RUN useradd -m -g sudo -s /bin/bash odoo
RUN apt-get install -y python-pip \
git vim mercurial \
ghostscript \
python-gevent \
python-dev \
freetds-dev \
python-matplotlib \
font-manager \
swig \
libffi-dev \
libssl-dev \
python-m2crypto \
python-httplib2 \
libxml2-dev \
libxslt-dev \
python-dev \
lib32z1-dev \
liblz-dev \
libcups2-dev
RUN pip install urllib3
RUN pip install cchardet
RUN pip install dicttoxml
RUN pip install pysftp
USER odoo
WORKDIR /home/odoo
RUN mkdir ~/odoo-dev
WORKDIR /home/odoo/odoo-dev
RUN mkdir extra-addons
RUN git clone https://github.com/odoo/odoo.git -b 8.0
RUN ./odoo/odoo.py setup_deps
RUN ./odoo/odoo.py setup_pg
WORKDIR /home/odoo
COPY ./entrypoint.sh
# Expose Odoo services
EXPOSE 8069 8071
ENTRYPOINT ["/entrypoint.sh"]