File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,8 @@ RUN apt-get update && apt-get install -y \
77
88RUN pip install clang-format pre-commit
99
10- WORKDIR /temp-repo
10+ COPY docker-entrypoint.sh /
11+ RUN chmod +x /docker-entrypoint.sh
1112
12- COPY .pre-commit-config.yaml .
13-
14- RUN git init . && pre-commit install --install-hooks
15-
16- WORKDIR /
17-
18- RUN rm -rf temp-repo
13+ ENTRYPOINT [ "/docker-entrypoint.sh" ]
14+ CMD [ "sleep" , "infinity" ]
Original file line number Diff line number Diff line change 44 "name" : " C++" ,
55 "build" : {
66 "dockerfile" : " Dockerfile" ,
7- "context " : " .. "
7+ "cacheFrom " : " ghcr.io/volumegraphics/traits-devcontainer "
88 },
99
1010 // Features to add to the dev container. More info: https://containers.dev/features.
3131 " twxs.cmake"
3232 ]
3333 }
34- }
34+ },
35+
36+ "overrideCommand" : false
3537
3638 // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
3739 // "remoteUser": "root"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ pre-commit install --install-hooks
4+
5+ exec " $@ "
You can’t perform that action at this time.
0 commit comments