mirror of
https://gitlab.com/itsulu-odoo/itsulu-blog-publisher.git
synced 2026-05-30 23:41:23 +00:00
Dockerfile for local testing
This commit is contained in:
parent
d08e7f9c27
commit
43ee650326
1 changed files with 20 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -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"]
|
||||||
Loading…
Reference in a new issue