[ADD]OdooCMD on CentOS7

This commit is contained in:
Fabien BOURGEOIS 2020-05-17 07:49:44 +02:00
parent 909cf69c77
commit b529a678ff
2 changed files with 20 additions and 0 deletions

View File

@ -110,6 +110,12 @@ services:
context: ./scripts
image: registry.yaltik.net/odoocmd:yaltik
odoocmdc7:
build:
context: ./scripts
dockerfile: Dockerfile.c7
image: registry.yaltik.net/odoocmd:yaltikc7
odoobackup:
build:
context: ./backups

View File

@ -0,0 +1,14 @@
FROM centos:7
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# EPEL for PIP
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
RUN yum --enablerepo=epel -y install python-pip
RUN pip install odoorpc
# Packages cleanup
RUN useradd odoo -m -s /bin/bash
USER odoo
COPY *.py /home/odoo/
WORKDIR /home/odoo
CMD /bin/true