File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
- ARG VARIANT=2
2
- FROM mcr.microsoft.com/devcontainers/universal:${VARIANT}
1
+ # https://github.com/microsoft/vscode-dev-containers/blob/main/containers/python-3-miniconda/.devcontainer/base.Dockerfile
2
+ ARG VARIANT=3
3
+ FROM mcr.microsoft.com/vscode/devcontainers/miniconda:${VARIANT}
4
+
5
+ # Install mamba for faster install
6
+ ENV MAMBA_EXE="/opt/mambaforge/bin/mamba"
7
+ RUN cd /tmp \
8
+ && curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" \
9
+ && sudo bash Mambaforge-$(uname)-$(uname -m).sh -b -p /opt/mambaforge
3
10
4
11
# Create the conda environment
5
12
COPY environment.yml /tmp/conda-tmp/
6
- RUN conda env create --file /tmp/conda-tmp/environment.yml
13
+ RUN $MAMBA_EXE env create --file /tmp/conda-tmp/environment.yml --prefix /home/vscode/.conda/envs/pandas_workshop \
14
+ && $MAMBA_EXE init
7
15
8
16
# Update PATH for Jupyter editing option
9
- ENV PATH="/opt/conda/envs/pandas_workshop/bin:${PATH}"
17
+ ENV PATH="/home/vscode/.conda/envs/pandas_workshop/bin:${PATH}"
18
+ ENV PROJ_LIB="/home/vscode/.conda/envs/pandas_workshop/share/proj"
Original file line number Diff line number Diff line change 26
26
"vscode" : {
27
27
// Set *default* container specific settings.json values on container create.
28
28
"settings" : {
29
- "python.defaultInterpreterPath" : " /opt/ conda/envs/pandas_workshop"
29
+ "python.defaultInterpreterPath" : " /home/vscode/. conda/envs/pandas_workshop"
30
30
},
31
31
32
32
// Add the IDs of extensions you want installed when the container is created.
You can’t perform that action at this time.
0 commit comments