Dockerfile 1.0 KB

1234567
  1. #debian odoo
  2. FROM debian:latest
  3. MAINTAINER Bawaaaaah <limason51@gmail.com>
  4. RUN echo "deb http://nightly.odoo.com/8.0/nightly/deb/ ./" >> /etc/apt/sources.list && apt-get update && apt-get install -y --force-yes postgresql odoo && service postgresql start && echo dXBkYXRlIHBnX2RhdGFiYXNlIHNldCBkYXRhbGxvd2Nvbm4gPSBUUlVFIHdoZXJlIGRhdG5hbWUgPSAndGVtcGxhdGUwJzsKXGMgdGVtcGxhdGUwCnVwZGF0ZSBwZ19kYXRhYmFzZSBzZXQgZGF0aXN0ZW1wbGF0ZSA9IEZBTFNFIHdoZXJlIGRhdG5hbWUgPSAndGVtcGxhdGUxJzsKZHJvcCBkYXRhYmFzZSB0ZW1wbGF0ZTE7CmNyZWF0ZSBkYXRhYmFzZSB0ZW1wbGF0ZTEgd2l0aCB0ZW1wbGF0ZSA9IHRlbXBsYXRlMCBlbmNvZGluZyA9ICdVVEY4JzsKdXBkYXRlIHBnX2RhdGFiYXNlIHNldCBkYXRpc3RlbXBsYXRlID0gVFJVRSB3aGVyZSBkYXRuYW1lID0gJ3RlbXBsYXRlMSc7ClxjIHRlbXBsYXRlMQp1cGRhdGUgcGdfZGF0YWJhc2Ugc2V0IGRhdGFsbG93Y29ubiA9IEZBTFNFIHdoZXJlIGRhdG5hbWUgPSAndGVtcGxhdGUwJzsK | base64 -d | su postgres -c "psql" && su postgres -c "createuser --createdb --username postgres --no-createrole -s odoo"
  5. EXPOSE 8069 8069
  6. ENTRYPOINT service postgresql start && su odoo -s /bin/bash -c odoo.py