Skip to content

Commit 8742701

Browse files
authored
feat: just and uv to dockerfile (#11)
needed for pre-commit hooks
1 parent ac3d2f4 commit 8742701

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ RUN curl -LsSf https://github.com/posit-dev/air/releases/latest/download/air-ins
3636
# Install jarl
3737
RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/etiennebacher/jarl/releases/latest/download/jarl-installer.sh | sh
3838

39+
# Install uv (Rust-based Python manager) needed for pre-commit hooks
40+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
3941

40-
WORKDIR /workspace
42+
# Install just
43+
RUN curl -fsSL https://just.systems/install.sh | bash -s -- --to /usr/local/bin
4144

42-
CMD ["/bin/bash"]
45+
CMD [ "bash" ]

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@
2121
},
2222
"forwardPorts": [],
2323
"name": "R Project Template",
24-
"postCreateCommand": "bash -lc \"curl -sSL https://raw.githubusercontent.com/A2-ai/rv/refs/heads/main/scripts/install.sh | bash && if command -v rv >/dev/null 2>&1; then rv syncs || true; fi\"",
25-
"workspaceFolder": "/workspace",
26-
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached"
24+
"postCreateCommand": "rv sync && just pre-commit-install && just pre-commit"
2725
}

0 commit comments

Comments
 (0)