2014-12-29 04:36:27 -05:00
|
|
|
FROM debian:jessie
|
2014-12-10 06:20:15 -05:00
|
|
|
MAINTAINER Odoo S.A. <info@odoo.com>
|
|
|
|
|
2014-12-11 05:26:49 -05:00
|
|
|
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
adduser \
|
2014-12-29 04:36:27 -05:00
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
npm \
|
2014-12-11 05:26:49 -05:00
|
|
|
python-support \
|
|
|
|
&& npm install -g less less-plugin-clean-css \
|
2014-12-29 04:36:27 -05:00
|
|
|
&& ln -s /usr/bin/nodejs /usr/bin/node \
|
|
|
|
&& curl -o wkhtmltox.deb -SL http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-wheezy-amd64.deb \
|
|
|
|
&& echo '07d397b32f91722de683e8777df2ddd6c49662c2 wkhtmltox.deb' | sha1sum -c - \
|
|
|
|
&& dpkg --force-depends -i wkhtmltox.deb \
|
2014-12-11 05:26:49 -05:00
|
|
|
&& apt-get -y install -f \
|
2014-12-31 08:33:55 -05:00
|
|
|
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
|
2014-12-10 06:20:15 -05:00
|
|
|
|
2014-12-29 04:36:27 -05:00
|
|
|
# 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
|
2014-12-10 06:20:15 -05:00
|
|
|
|
|
|
|
# Install Odoo
|
2014-12-29 04:36:27 -05:00
|
|
|
ENV ODOO_VERSION 8.0
|
2014-12-31 08:33:55 -05:00
|
|
|
ENV ODOO_RELEASE 20141231
|
2014-12-29 04:36:27 -05:00
|
|
|
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 \
|
2014-12-31 08:33:55 -05:00
|
|
|
&& apt-get update \
|
2014-12-11 05:26:49 -05:00
|
|
|
&& apt-get -y install -f --no-install-recommends \
|
2014-12-31 08:33:55 -05:00
|
|
|
&& rm -rf /var/lib/apt/lists/* odoo.deb
|
2014-12-10 06:20:15 -05:00
|
|
|
|
2014-12-29 04:36:27 -05:00
|
|
|
# Retrieve Odoo public key and add Odoo nightly to repo list for further updates
|
|
|
|
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 0xdef2a2198183cbb5 \
|
2014-12-11 05:26:49 -05:00
|
|
|
&& echo "deb http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/ ./" >> /etc/apt/sources.list
|
2014-12-10 06:20:15 -05:00
|
|
|
|
|
|
|
# Run script
|
2014-12-29 04:36:27 -05:00
|
|
|
COPY ./run.sh /
|
2014-12-10 06:20:15 -05:00
|
|
|
|
2014-12-15 05:50:47 -05:00
|
|
|
# Mount /var/lib/odoo to allow restoring filestore
|
|
|
|
VOLUME ["/var/lib/odoo"]
|
|
|
|
|
2014-12-10 06:20:15 -05:00
|
|
|
CMD ["/run.sh"]
|