Skip to content

Commit bcca6ed

Browse files
committed
feat: change back user group to odoo
1 parent a965db5 commit bcca6ed

File tree

6 files changed

+30
-18
lines changed

6 files changed

+30
-18
lines changed

14.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.9-slim-trixie
22
ARG UID=999
3-
ARG GID=0
3+
ARG GID=999
44

55

66
# create the working directory and a place to set the logs (if wanted)
7-
RUN adduser --disabled-password --no-create-home \
8-
--home /odoo --gecos '' -u $UID --gid $GID odoo \
7+
RUN groupadd -g $GID odoo \
8+
&& adduser --disabled-password --no-create-home --gecos '' \
9+
--home /odoo --uid $UID --gid $GID odoo \
910
&& install -m 770 -o odoo -d /var/log/odoo \
1011
/odoo /odoo/.venv /odoo/src \
1112
/odoo/data \
@@ -59,6 +60,7 @@ RUN /install/package_odoo.sh \
5960
&& python3 -m venv /odoo/.venv --system-site-packages \
6061
&& /odoo/.venv/bin/pip install -r /odoo/base_requirements.txt \
6162
&& /odoo/.venv/bin/pip install -r /odoo/extra_requirements.txt" \
63+
&& chgrp -R root /odoo/.venv \
6264
# Grab dockerize to generate template and wait on postgres \
6365
&& /install/dockerize.sh \
6466
# Purge build packages, to reduce layer size \

15.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.12-slim-trixie
22
ARG UID=999
3-
ARG GID=0
3+
ARG GID=999
44

55

66
# create the working directory and a place to set the logs (if wanted)
7-
RUN adduser --disabled-password --no-create-home \
8-
--home /odoo --gecos '' -u $UID --gid $GID odoo \
7+
RUN groupadd -g $GID odoo \
8+
&& adduser --disabled-password --no-create-home --gecos '' \
9+
--home /odoo --uid $UID --gid $GID odoo \
910
&& install -m 770 -o odoo -d /var/log/odoo \
1011
/odoo /odoo/.venv /odoo/src \
1112
/odoo/data \
@@ -59,6 +60,7 @@ RUN /install/package_odoo.sh \
5960
&& python3 -m venv /odoo/.venv --system-site-packages \
6061
&& /odoo/.venv/bin/pip install -r /odoo/base_requirements.txt \
6162
&& /odoo/.venv/bin/pip install -r /odoo/extra_requirements.txt" \
63+
&& chgrp -R root /odoo/.venv \
6264
# Grab dockerize to generate template and wait on postgres \
6365
&& /install/dockerize.sh \
6466
# Purge build packages, to reduce layer size \

16.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.12-slim-trixie
22
ARG UID=999
3-
ARG GID=0
3+
ARG GID=999
44

55

66
# create the working directory and a place to set the logs (if wanted)
7-
RUN adduser --disabled-password --no-create-home \
8-
--home /odoo --gecos '' -u $UID --gid $GID odoo \
7+
RUN groupadd -g $GID odoo \
8+
&& adduser --disabled-password --no-create-home --gecos '' \
9+
--home /odoo --uid $UID --gid $GID odoo \
910
&& install -m 770 -o odoo -d /var/log/odoo \
1011
/odoo /odoo/.venv /odoo/src \
1112
/odoo/data \
@@ -59,6 +60,7 @@ RUN /install/package_odoo.sh \
5960
&& python3 -m venv /odoo/.venv --system-site-packages \
6061
&& /odoo/.venv/bin/pip install -r /odoo/base_requirements.txt \
6162
&& /odoo/.venv/bin/pip install -r /odoo/extra_requirements.txt" \
63+
&& chgrp -R root /odoo/.venv \
6264
# Grab dockerize to generate template and wait on postgres \
6365
&& /install/dockerize.sh \
6466
# Purge build packages, to reduce layer size \

17.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.12-slim-trixie
22
ARG UID=999
3-
ARG GID=0
3+
ARG GID=999
44

55

66
# create the working directory and a place to set the logs (if wanted)
7-
RUN adduser --disabled-password --no-create-home \
8-
--home /odoo --gecos '' -u $UID --gid $GID odoo \
7+
RUN groupadd -g $GID odoo \
8+
&& adduser --disabled-password --no-create-home --gecos '' \
9+
--home /odoo --uid $UID --gid $GID odoo \
910
&& install -m 770 -o odoo -d /var/log/odoo \
1011
/odoo /odoo/.venv /odoo/src \
1112
/odoo/data \
@@ -59,6 +60,7 @@ RUN /install/package_odoo.sh \
5960
&& python3 -m venv /odoo/.venv --system-site-packages \
6061
&& /odoo/.venv/bin/pip install -r /odoo/base_requirements.txt \
6162
&& /odoo/.venv/bin/pip install -r /odoo/extra_requirements.txt" \
63+
&& chgrp -R root /odoo/.venv \
6264
# Grab dockerize to generate template and wait on postgres \
6365
&& /install/dockerize.sh \
6466
# Purge build packages, to reduce layer size \

18.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.12-slim-trixie
22
ARG UID=999
3-
ARG GID=0
3+
ARG GID=999
44

55

66
# create the working directory and a place to set the logs (if wanted)
7-
RUN adduser --disabled-password --no-create-home \
8-
--home /odoo --gecos '' -u $UID --gid $GID odoo \
7+
RUN groupadd -g $GID odoo \
8+
&& adduser --disabled-password --no-create-home --gecos '' \
9+
--home /odoo --uid $UID --gid $GID odoo \
910
&& install -m 770 -o odoo -d /var/log/odoo \
1011
/odoo /odoo/.venv /odoo/src \
1112
/odoo/data \
@@ -59,6 +60,7 @@ RUN /install/package_odoo.sh \
5960
&& python3 -m venv /odoo/.venv --system-site-packages \
6061
&& /odoo/.venv/bin/pip install -r /odoo/base_requirements.txt \
6162
&& /odoo/.venv/bin/pip install -r /odoo/extra_requirements.txt" \
63+
&& chgrp -R root /odoo/.venv \
6264
# Grab dockerize to generate template and wait on postgres \
6365
&& /install/dockerize.sh \
6466
# Purge build packages, to reduce layer size \

19.0/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM python:3.12-slim-trixie
22
ARG UID=999
3-
ARG GID=0
3+
ARG GID=999
44

55

66
# create the working directory and a place to set the logs (if wanted)
7-
RUN adduser --disabled-password --no-create-home \
8-
--home /odoo --gecos '' -u $UID --gid $GID odoo \
7+
RUN groupadd -g $GID odoo \
8+
&& adduser --disabled-password --no-create-home --gecos '' \
9+
--home /odoo --uid $UID --gid $GID odoo \
910
&& install -m 770 -o odoo -d /var/log/odoo \
1011
/odoo /odoo/.venv /odoo/src \
1112
/odoo/data \
@@ -59,6 +60,7 @@ RUN /install/package_odoo.sh \
5960
&& python3 -m venv /odoo/.venv --system-site-packages \
6061
&& /odoo/.venv/bin/pip install -r /odoo/base_requirements.txt \
6162
&& /odoo/.venv/bin/pip install -r /odoo/extra_requirements.txt" \
63+
&& chgrp -R root /odoo/.venv \
6264
# Grab dockerize to generate template and wait on postgres \
6365
&& /install/dockerize.sh \
6466
# Purge build packages, to reduce layer size \

0 commit comments

Comments
 (0)