1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- FROM debian:jessie
- MAINTAINER Robert Alexis Gauto <robert.gauto@gmail.com>
- # Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
- RUN set -x; \
- apt-get update \
- && apt-get install -y --no-install-recommends \
- ca-certificates \
- curl \
- node-less \
- node-clean-css \
- python-pyinotify \
- python-renderpm \
- python-support \
- python-pip \
- python-psycopg2 \
- python-gevent \
- gcc \
- python-dev \
- libffi-dev \
- libssh-dev \
- && 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 --no-install-recommends \
- && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false npm \
- && rm -rf /var/lib/apt/lists/* wkhtmltox.deb
- # Install python deps
- RUN pip install num2words
- RUN pip install psycogreen
- RUN pip install pysftp
- # Install Odoo
- ENV ODOO_VERSION 8.0
- ENV ODOO_RELEASE 20160329
- RUN set -x; \
- curl -o odoo.deb -SL http://nightly.odoo.com/${ODOO_VERSION}/nightly/deb/odoo_${ODOO_VERSION}.${ODOO_RELEASE}_all.deb \
- && echo 'b363901424d0181b385971c6f3dfe093b85c0d36 odoo.deb' | sha1sum -c - \
- && 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 /
- RUN chmod +x /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
- RUN mkdir -p /opt/odoo/addons \
- && chown -R odoo /opt/odoo/addons
- VOLUME ["/var/lib/odoo", "/mnt/extra-addons", "/opt/odoo/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"]
|