precommit: Use Python venv

This commit is contained in:
Ole Schütt 2023-11-04 13:17:21 +01:00 committed by Ole Schütt
parent f8667229bc
commit ab8d59069b
3 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,7 @@ FROM ubuntu:22.04
WORKDIR /opt/cp2k-precommit
COPY ./tools/precommit/ /opt/cp2k-precommit/
RUN ./install_requirements.sh
ENV PATH="/opt/venv/bin:$PATH"
# Install sources.
WORKDIR /opt/cp2k