46 lines
1.6 KiB
Docker
46 lines
1.6 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.2.1_linux-jessie-amd64.deb \
|
|
&& echo 'c81fffae4c0914f95fb12e047a72edda5042b1c6 wkhtmltox.deb' | sha1sum -c - \
|
|
&& dpkg --force-depends -i wkhtmltox.deb \
|
|
&& apt-get -y install -f \
|
|
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
|
|
|
|
# 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
|
|
|
|
# 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 \
|
|
&& echo "deb http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/ ./" >> /etc/apt/sources.list
|
|
|
|
# Run script and Odoo configuration file
|
|
COPY ./run.sh /
|
|
|
|
# Mount /var/lib/odoo to allow restoring filestore
|
|
VOLUME ["/var/lib/odoo"]
|
|
|
|
# Expose Odoo service
|
|
EXPOSE 8069
|
|
|
|
# Set default user when running the container
|
|
USER odoo
|
|
|
|
ENTRYPOINT ["/run.sh"]
|