This commit is contained in:
parent
4cb649197b
commit
6a7cc76ad7
13
Dockerfile
13
Dockerfile
@ -1,14 +1,17 @@
|
|||||||
FROM odoo:17.0
|
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
|
RUN pip install mygeotab
|
||||||
|
|
||||||
# Copy tests directory into the image
|
# Copy the tests directory into the image
|
||||||
COPY tests/ /tests/
|
COPY tests/ /tests/
|
||||||
|
|
||||||
# Switch to root to set permissions
|
|
||||||
USER root
|
|
||||||
|
|
||||||
# Set execute permissions and ownership
|
# Set execute permissions and ownership
|
||||||
RUN chmod +x /tests/runtests.sh \
|
RUN chmod +x /tests/runtests.sh \
|
||||||
&& chown -R odoo:odoo /tests
|
&& chown -R odoo:odoo /tests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user