diff --git a/Dockerfile b/Dockerfile index 81db305..a14f953 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,17 @@ FROM odoo:17.0 -# Install deps +# Switch to root to install packages +USER root + +# Update package list and install python3-venv +RUN apt-get update && apt-get install -y python3-venv + +# Install some dependencies RUN pip install mygeotab -# Copy tests directory into the image +# Copy the 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