2015-10-08 05:21:13 -04:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Odoo S.A. <info@odoo.com>
|
|
|
|
|
|
|
|
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
|
2016-12-30 13:04:52 -05:00
|
|
|
ENV WKHTMLTOX_VERSION 0.12.1.2
|
|
|
|
ENV WKHTMLTOX_SHA1SUM 40e8b906de658a2221b15e4e8cd82565a47d7ee8
|
2015-10-08 05:21:13 -04:00
|
|
|
RUN set -x; \
|
|
|
|
apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
node-less \
|
2016-10-25 09:51:39 -04:00
|
|
|
python-gevent \
|
|
|
|
python-pip \
|
2015-10-08 05:21:13 -04:00
|
|
|
python-pyinotify \
|
|
|
|
python-renderpm \
|
|
|
|
python-support \
|
2016-12-30 13:04:52 -05:00
|
|
|
&& curl -o wkhtmltox.deb -SL "http://nightly.odoo.com/extra/wkhtmltox-${WKHTMLTOX_VERSION}_linux-jessie-amd64.deb" \
|
|
|
|
&& echo "${WKHTMLTOX_SHA1SUM} wkhtmltox.deb" | sha1sum -c - \
|
2015-10-08 05:21:13 -04:00
|
|
|
&& dpkg --force-depends -i wkhtmltox.deb \
|
|
|
|
&& apt-get -y install -f --no-install-recommends \
|
|
|
|
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false npm \
|
2016-10-25 09:51:39 -04:00
|
|
|
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb \
|
|
|
|
&& pip install psycogreen==1.0
|
2015-10-08 05:21:13 -04:00
|
|
|
|
|
|
|
# Install Odoo
|
|
|
|
ENV ODOO_VERSION 9.0
|
2016-11-23 05:59:12 -05:00
|
|
|
ENV ODOO_RELEASE 20161123
|
2016-12-30 13:04:52 -05:00
|
|
|
ENV ODOO_SHA1SUM c9e66e878146940ef188eaa8c9bc5da7e4306982
|
2015-10-08 05:21:13 -04:00
|
|
|
RUN set -x; \
|
2015-12-15 08:26:57 -05:00
|
|
|
curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}c.${ODOO_RELEASE}_all.deb \
|
2016-12-30 13:04:52 -05:00
|
|
|
&& echo "${ODOO_SHA1SUM} odoo.deb" | sha1sum -c - \
|
2015-10-08 05:21:13 -04:00
|
|
|
&& dpkg --force-depends -i odoo.deb \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get -y install -f --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* odoo.deb
|
|
|
|
|
|
|
|
# Copy entrypoint script and Odoo configuration file
|
|
|
|
COPY ./entrypoint.sh /
|
|
|
|
COPY ./openerp-server.conf /etc/odoo/
|
|
|
|
RUN chown odoo /etc/odoo/openerp-server.conf
|
|
|
|
|
|
|
|
# Mount /var/lib/odoo to allow restoring filestore and /mnt/extra-addons for users addons
|
|
|
|
RUN mkdir -p /mnt/extra-addons \
|
|
|
|
&& chown -R odoo /mnt/extra-addons
|
|
|
|
VOLUME ["/var/lib/odoo", "/mnt/extra-addons"]
|
|
|
|
|
|
|
|
# Expose Odoo services
|
|
|
|
EXPOSE 8069 8071
|
|
|
|
|
|
|
|
# Set the default config file
|
|
|
|
ENV OPENERP_SERVER /etc/odoo/openerp-server.conf
|
|
|
|
|
|
|
|
# Set default user when running the container
|
|
|
|
USER odoo
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["openerp-server"]
|