-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(internal): improve github devcontainer setup (#174)
- Loading branch information
1 parent
9a8407d
commit 5334b9c
Showing
2 changed files
with
25 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,9 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM debian:bookworm-slim | ||
ARG VARIANT="3.9" | ||
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libxkbcommon0 \ | ||
ca-certificates \ | ||
make \ | ||
curl \ | ||
git \ | ||
unzip \ | ||
libc++1 \ | ||
vim \ | ||
termcap \ | ||
&& apt-get clean autoclean | ||
USER vscode | ||
|
||
RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.15.2" RYE_INSTALL_OPTION="--yes" bash | ||
ENV PATH=/root/.rye/shims:$PATH | ||
ENV PATH=/home/vscode/.rye/shims:$PATH | ||
|
||
WORKDIR /workspace | ||
|
||
COPY README.md .python-version pyproject.toml requirements.lock requirements-dev.lock /workspace/ | ||
|
||
RUN rye sync --all-features | ||
|
||
COPY . /workspace | ||
|
||
CMD ["rye", "shell"] | ||
RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters