fix: devcontainer build and setup on fresh clones
This commit is contained in:
parent
1e8050611c
commit
c2125f063b
7 changed files with 70 additions and 15 deletions
|
|
@ -16,9 +16,10 @@ ENV PATH="/opt/venv/bin:$PATH"
|
|||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
||||
|
||||
# Foundational, inert in prod: non-root user for the editor, sudo for setup,
|
||||
# openssh-client for the devcontainer post-start hook.
|
||||
# openssh-client for the devcontainer post-start hook, curl for the opencode
|
||||
# installer in setup.sh, git for the VS Code source-control view.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends sudo openssh-client \
|
||||
&& apt-get install -y --no-install-recommends sudo openssh-client curl git ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& useradd -m -s /bin/bash vscode \
|
||||
&& echo "vscode ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/vscode \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue