2020-05-17 07:49:44 +02:00
|
|
|
FROM centos:7
|
2022-02-28 20:19:10 +01:00
|
|
|
LABEL maintainer="Yaltik - Fabien Bourgeois <fabien@yaltik.com>"
|
2020-05-17 07:49:44 +02:00
|
|
|
|
|
|
|
# EPEL for PIP
|
2022-02-28 20:19:10 +01:00
|
|
|
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
|
|
|
|
yum --enablerepo=epel -y install python-pip && \
|
|
|
|
yum clean all && \
|
|
|
|
pip install --no-cache-dir odoorpc==0.8.0
|
2020-05-17 07:49:44 +02:00
|
|
|
|
2022-02-28 20:19:10 +01:00
|
|
|
# Useradd
|
2020-05-17 07:49:44 +02:00
|
|
|
RUN useradd odoo -m -s /bin/bash
|
|
|
|
USER odoo
|
|
|
|
COPY *.py /home/odoo/
|
|
|
|
WORKDIR /home/odoo
|
2022-02-28 20:19:10 +01:00
|
|
|
|
|
|
|
CMD ["/bin/true"]
|