forked from druidoo/docker-posbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
9.0.Dockerfile
35 lines (29 loc) · 1.19 KB
/
9.0.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
FROM druidoo/odoo:9.0-base
USER root
# Install other iotbox requirements
RUN apt-get update \
&& apt-get install -yqq --no-install-recommends \
usbutils \
&& rm -Rf /var/lib/apt/lists/* /tmp/* \
&& apt-get clean
# Install odoo with sparse-checkout (only hw_* addons)
RUN git clone --no-local --no-checkout --depth 1 --branch $ODOO_VERSION https://github.com/$ODOO_SOURCE $SOURCES/odoo && \
cd $SOURCES/odoo && \
git config core.sparsecheckout true && \
printf "/*\n!/addons/*\naddons/web\naddons/hw_*\n" | tee --append .git/info/sparse-checkout > /dev/null && \
git read-tree -mu HEAD
RUN pip install --no-cache-dir $SOURCES/odoo
# Install other dependancies
RUN pip install --no-cache-dir \
pyusb==1.0b1 \
qrcode==4.0.1 \
evdev \
pyyaml \
pycountry \
pyserial \
netifaces
# Simulate odoo bin
RUN if [ -f /home/odoo/.local/bin/openerp-server ]; then cp /home/odoo/.local/bin/openerp-server /home/odoo/.local/bin/odoo; fi
RUN if [ -f /usr/local/bin/openerp-server ]; then cp /usr/local/bin/openerp-server /usr/local/bin/odoo; fi
# Custom entrypoints
COPY resources/$ODOO_VERSION/entrypoint.d/ $RESOURCES/entrypoint.d/