Skip to content

Commit be560e4

Browse files
maresbricardoV94
authored andcommitted
Define PRE_COMMIT_HOME in dev.Dockerfile
1 parent 3f4dc72 commit be560e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/dev.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ RUN : \
1010

1111
ARG MAMBA_DOCKERFILE_ACTIVATE=1
1212

13+
ENV PRE_COMMIT_HOME=/opt/.pre-commit-cache-prebuilt
1314
COPY --chown=${MAMBA_USER}:${MAMBA_USER} .pre-commit-config.yaml /fake-repo/.pre-commit-config.yaml
1415
RUN : \
1516
&& sudo mkdir --mode=777 /opt/.pre-commit-cache-prebuilt \
1617
&& cd /fake-repo \
1718
&& git init \
18-
&& PRE_COMMIT_HOME=/opt/.pre-commit-cache-prebuilt pre-commit install-hooks \
19+
&& pre-commit install-hooks \
1920
&& sudo rm -rf /fake-repo \
2021
&& sudo chmod -R a+rwx /opt/.pre-commit-cache-prebuilt \
2122
;

0 commit comments

Comments
 (0)