diff --git a/.devcontainer.json b/.devcontainer.json index 13967b0..63689ad 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,6 +1,11 @@ { "name": "java-api", "image": "quay.io/ignition-devs/devcontainer-base:python", + "workspaceMount": "source=${localWorkspaceFolder},target=${containerWorkspaceFolder},type=bind", + "workspaceFolder": "/workspaces/java-api", + "mounts": [ + "source=pre-commit-cache,target=/root/.cache/pre-commit,type=volume" + ], "customizations": { "vscode": { "extensions": [ @@ -14,4 +19,4 @@ }, "onCreateCommand": "pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push", "postCreateCommand": "python2 -m pip install --requirement requirements.txt" -} \ No newline at end of file +}