Skip to content

Commit e309b43

Browse files
feat(github): include a devcontainer setup (#162)
1 parent dd892be commit e309b43

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.devcontainer/Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# syntax=docker/dockerfile:1
2+
FROM debian:bookworm-slim
3+
4+
RUN apt-get update && apt-get install -y \
5+
libxkbcommon0 \
6+
ca-certificates \
7+
make \
8+
curl \
9+
git \
10+
unzip \
11+
libc++1 \
12+
vim \
13+
termcap \
14+
&& apt-get clean autoclean
15+
16+
RUN curl -sSf https://rye-up.com/get | RYE_VERSION="0.15.2" RYE_INSTALL_OPTION="--yes" bash
17+
ENV PATH=/root/.rye/shims:$PATH
18+
19+
WORKDIR /workspace
20+
21+
COPY README.md .python-version pyproject.toml requirements.lock requirements-dev.lock /workspace/
22+
23+
RUN rye sync --all-features
24+
25+
COPY . /workspace
26+
27+
CMD ["rye", "shell"]

.devcontainer/devcontainer.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
3+
{
4+
"name": "Debian",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
}
8+
9+
// Features to add to the dev container. More info: https://containers.dev/features.
10+
// "features": {},
11+
12+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
13+
// "forwardPorts": [],
14+
15+
// Configure tool-specific properties.
16+
// "customizations": {},
17+
18+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
19+
// "remoteUser": "root"
20+
}

0 commit comments

Comments
 (0)