From 4cb649197bcaf97baa84690a455145045ef12f10 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Fri, 25 Oct 2024 10:37:17 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7ffcb5a..81db305 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ FROM odoo:17.0 -# Install some deps +# Install deps RUN pip install mygeotab -# Copy the tests directory into the image +# Copy tests directory into the image COPY tests/ /tests/ +# Switch to root to set permissions +USER root + # Set execute permissions and ownership RUN chmod +x /tests/runtests.sh \ && chown -R odoo:odoo /tests + +# Switch back to the odoo user +USER odoo