2019-11-13 19:46:38 +01:00
|
|
|
IMAGE odoo_13.0.0-191113
|
2019-09-18 11:29:58 +02:00
|
|
|
|
|
|
|
LAYER alpine3.9_3.9.4-190620
|
|
|
|
LAYER alpine3.9-python3.6_3.6.8-190620
|
|
|
|
LAYER alpine3.9-nodejs10_10.14.2-190620
|
2018-11-17 22:08:10 +01:00
|
|
|
|
2019-11-17 15:04:34 +01:00
|
|
|
MERGE /usr/bin/lxcmerge
|
2018-11-17 22:08:10 +01:00
|
|
|
|
|
|
|
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
|
2019-11-13 19:46:38 +01:00
|
|
|
git clone -b 13.0 --depth 1 https://github.com/odoo/odoo.git /srv/odoo
|
2018-11-17 22:08:10 +01:00
|
|
|
|
|
|
|
# Install Odoo
|
|
|
|
cd /srv/odoo
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
# Create OS user
|
2019-10-14 07:59:06 +02:00
|
|
|
addgroup -S -g 8080 odoo
|
|
|
|
adduser -S -u 8080 -h /srv/odoo -s /bin/false -g odoo -G odoo odoo
|
2018-11-17 22:08:10 +01:00
|
|
|
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
|
|
|
|
|
2019-10-14 07:59:06 +02:00
|
|
|
USER 8080 8080
|
2018-11-17 22:08:10 +01:00
|
|
|
CMD /srv/odoo/odoo-bin -c srv/odoo/odoo.conf
|