File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM mcr.microsoft.com/devcontainers/base:jammy
2+
3+ ARG PIXI_VERSION=v0.59.0
4+
5+ RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \
6+ && chmod +x /usr/local/bin/pixi \
7+ && pixi info
8+
9+ # set some user and workdir settings to work nicely with vscode
10+ USER vscode
11+ WORKDIR /home/vscode
12+
13+ RUN echo 'eval "$(pixi completion -s bash)"' >> /home/vscode/.bashrc
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " my-workspace" ,
3+ "build" : {
4+ "dockerfile" : " Dockerfile" ,
5+ "context" : " .."
6+ },
7+ "customizations" : {
8+ "vscode" : {
9+ "settings" : {},
10+ "extensions" : [" ms-python.python" , " charliermarsh.ruff" , " GitHub.copilot" ]
11+ }
12+ },
13+ "features" : {
14+ "ghcr.io/devcontainers/environments/docker-in-docker:2" : {}
15+ },
16+ "mounts" : [
17+ " source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"
18+ ],
19+ "postCreateCommand" : " sudo chown vscode .pixi && pixi install"
20+ }
You can’t perform that action at this time.
0 commit comments