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