Skip to content

Commit 28c0c3a

Browse files
committed
Use mamba-org's micromamba dev container feature in codespaces
1 parent 338484d commit 28c0c3a

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM mcr.microsoft.com/devcontainers/base:ubuntu
2+
COPY environment.yml /tmp/environment.yml

.devcontainer/devcontainer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
"memory": "8gb",
44
"cpus": 4
55
},
6-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
6+
"build": {
7+
"dockerfile": "Dockerfile",
8+
"context": ".."
9+
},
710
"features": {
811
"ghcr.io/devcontainers/features/desktop-lite:1": {},
912
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
1013
"packages": "inkscape,ffmpeg,dvipng,lmodern,cm-super,texlive-latex-base,texlive-latex-extra,texlive-fonts-recommended,texlive-latex-recommended,texlive-pictures,texlive-xetex,fonts-wqy-zenhei,graphviz,fonts-crosextra-carlito,fonts-freefont-otf,fonts-comic-neue,fonts-noto-cjk,optipng"
14+
},
15+
"ghcr.io/mamba-org/devcontainer-features/micromamba:1": {
16+
"envFile": "/tmp/environment.yml"
1117
}
1218
},
13-
"onCreateCommand": ".devcontainer/setup.sh",
14-
"postCreateCommand": "",
1519
"forwardPorts": [6080],
1620
"portsAttributes": {
1721
"6080": {

.devcontainer/setup.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)