itsulu-blog-publisher/Dockerfile

20 lines
567 B
Docker

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"]