File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11FROM python:3.12-slim-trixie
22ARG 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 \
Original file line number Diff line number Diff line change 11FROM python:3.12-slim-trixie
22ARG 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 \
You can’t perform that action at this time.
0 commit comments