From 43ee650326673ca3abfa93c6299ae930e77fb2bc Mon Sep 17 00:00:00 2001 From: Nicholas Riegel Date: Fri, 29 May 2026 14:53:09 -0400 Subject: [PATCH] Dockerfile for local testing --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..49e9a20 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM odoo:17.0 + +# Install Python testing dependencies directly with pip +# (Odoo base image already has system dependencies) +RUN pip install --no-cache-dir \ + pytest \ + pytest-odoo \ + pytest-bdd \ + pytest-cov \ + pytest-html \ + requests + +# Copy addon to Odoo addons path +COPY addons/itsulu_blog_publisher /mnt/extra-addons/itsulu_blog_publisher + +# Set working directory +WORKDIR /mnt/extra-addons/itsulu_blog_publisher + +# Default command runs tests (can be overridden) +CMD ["pytest", "tests/", "-v", "--html=/tmp/report.html", "--self-contained-html"]