forked from druidoo/docker-posbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
11.0.Dockerfile
31 lines (26 loc) · 960 Bytes
/
11.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
FROM druidoo/odoo:11.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
# Custom entrypoints
COPY resources/$ODOO_VERSION/entrypoint.d/ $RESOURCES/entrypoint.d/