forked from camptocamp/docker-odoo-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (27 loc) · 921 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
FROM camptocamp/odoo-project:11.0-latest
MAINTAINER Camptocamp
# For installing odoo you have two possibility
# 1. either adding the whole root directory
#COPY . /odoo
# 2. or adding each directory, this solution will reduce the build and download
# time of the image on the server (layers are reused)
COPY ./src /odoo/src
COPY ./external-src /odoo/external-src
COPY ./local-src /odoo/local-src
COPY ./data /odoo/data
COPY ./songs /odoo/songs
COPY ./setup.py /odoo/
COPY ./VERSION /odoo/
COPY ./migration.yml /odoo/
RUN pip install -e /odoo
RUN pip install -e /odoo/src
# Project's specifics packages
RUN set -x; \
apt-get update \
&& apt-get install -y --no-install-recommends \
python-shapely \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY ./requirements.txt /odoo/
RUN cd /odoo && pip install -r requirements.txt
ENV ADDONS_PATH=/odoo/local-src,/odoo/src/addons