IMAGE odoo 12.0.0-190620 META title Odoo META desc-cs Sada aplikací pro správu organizace META desc-en Company management application suite META type app META license GPL META depends postgres LAYER alpine3.9 3.9.4-190620 LAYER alpine3.9-python3.6 3.6.8-190620 LAYER alpine3.9-nodejs10 10.14.2-190620 FIXLAYER /usr/bin/fix-apk RUN EOF # Install runtime dependencies apk --no-cache add libjpeg-turbo libpq # Install build dependencies apk --no-cache add --virtual .deps build-base git libjpeg-turbo-dev libxml2-dev libxslt-dev linux-headers openldap-dev postgresql-dev python3-dev # Clone Odoo repository git clone --depth 1 https://github.com/odoo/odoo.git /srv/odoo # Install Odoo cd /srv/odoo pip3 install -r requirements.txt # Create OS user addgroup -S -g 8019 odoo adduser -S -u 8019 -h /srv/odoo -s /bin/false -g odoo -G odoo odoo chown -R odoo:odoo /srv/odoo # Cleanup apk --no-cache del .deps find /srv/odoo -name '.git*' -exec rm -rf {} + rm -rf /usr/local/share/.cache EOF MOUNT FILE /srv/odoo/conf/odoo.conf srv/odoo/odoo.conf MOUNT DIR /srv/odoo/data srv/odoo/data USER 8019 8019 CMD /srv/odoo/odoo-bin -c srv/odoo/odoo.conf