f035a31858
Since Odoo is the PID 1, updating Odoo in the container has no effect.
45 lines
1.8 KiB
Docker
45 lines
1.8 KiB
Docker
FROM debian:jessie
|
|
MAINTAINER Odoo S.A. <info@odoo.com>
|
|
|
|
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
adduser \
|
|
ca-certificates \
|
|
curl \
|
|
npm \
|
|
python-support \
|
|
&& npm install -g less less-plugin-clean-css \
|
|
&& ln -s /usr/bin/nodejs /usr/bin/node \
|
|
&& curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \
|
|
&& echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \
|
|
&& dpkg --force-depends -i wkhtmltox.deb \
|
|
&& apt-get -y install -f \
|
|
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
|
|
|
|
# Grab gosu for easy step-down from root
|
|
RUN gpg --keyserver pgp.mit.edu --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
|
|
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \
|
|
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \
|
|
&& gpg --verify /usr/local/bin/gosu.asc \
|
|
&& rm /usr/local/bin/gosu.asc \
|
|
&& chmod +x /usr/local/bin/gosu
|
|
|
|
# Install Odoo
|
|
ENV ODOO_VERSION 8.0
|
|
ENV ODOO_RELEASE 20141231
|
|
RUN curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}.${ODOO_RELEASE}_all.deb \
|
|
&& 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
|
|
|
|
# Run script and Odoo configuration file
|
|
COPY ./run.sh /
|
|
COPY ./openerp-server.conf /etc/odoo/
|
|
|
|
# Mount /var/lib/odoo to allow restoring filestore
|
|
VOLUME ["/var/lib/odoo"]
|
|
|
|
CMD ["/run.sh"]
|