Fix Dockerfile when using root on host

root user should not be used to create container and oow should not be
run as root.

But when running oow in a docker, then the default user of this docker
can be root.

This fix allow to link the odoo user in the odoo environment docker to
match a root user of the host docker.
This commit is contained in:
Rémy Taymans 2023-11-09 16:36:53 +01:00
parent a3a8af9a70
commit 690ab60699
6 changed files with 6 additions and 6 deletions

View File

@ -55,6 +55,6 @@ RUN pip3 install --upgrade pip \
# <OOW> Get local user id and set it to the odoo user
ARG LOCAL_USER_ID
RUN useradd --uid $LOCAL_USER_ID odoo
RUN useradd --uid $LOCAL_USER_ID --non-unique odoo
USER odoo

View File

@ -55,6 +55,6 @@ RUN pip3 install --upgrade pip \
# <OOW> Get local user id and set it to the odoo user
ARG LOCAL_USER_ID
RUN useradd --uid $LOCAL_USER_ID odoo
RUN useradd --uid $LOCAL_USER_ID --non-unique odoo
USER odoo

View File

@ -51,6 +51,6 @@ RUN pip3 install --upgrade pip \
# <OOW> Get local user id and set it to the odoo user
ARG LOCAL_USER_ID
RUN useradd --uid $LOCAL_USER_ID odoo
RUN useradd --uid $LOCAL_USER_ID --non-unique odoo
USER odoo

View File

@ -44,6 +44,6 @@ RUN pip3 install --upgrade pip \
# <OOW> Get local user id and set it to the odoo user
ARG LOCAL_USER_ID
RUN useradd --uid $LOCAL_USER_ID odoo
RUN useradd --uid $LOCAL_USER_ID --non-unique odoo
USER odoo

View File

@ -44,6 +44,6 @@ RUN pip3 install --upgrade pip \
# <OOW> Get local user id and set it to the odoo user
ARG LOCAL_USER_ID
RUN useradd --uid $LOCAL_USER_ID odoo
RUN useradd --uid $LOCAL_USER_ID --non-unique odoo
USER odoo

View File

@ -44,6 +44,6 @@ RUN pip3 install --upgrade pip \
# <OOW> Get local user id and set it to the odoo user
ARG LOCAL_USER_ID
RUN useradd --uid $LOCAL_USER_ID odoo
RUN useradd --uid $LOCAL_USER_ID --non-unique odoo
USER odoo