microsoft/AI-For-Beginners

Public

mirrored fromhttps://github.com/microsoft/AI-For-BeginnersAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
88034d51145c0d8bc71779cf98037daab83275c8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.devcontainer/Dockerfile

20lines · modecode

1FROM mcr.microsoft.com/vscode/devcontainers/miniconda:0-3
2
3# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
4ARG NODE_VERSION="none"
5RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
6
7# Copy environment.yml (if found) to a temp location so we update the environment. Also
8# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
9COPY .devcontainer/environment.yml* .devcontainer/requirements.txt /tmp/conda-tmp/
10RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
11 && rm -rf /tmp/conda-tmp
12
13# [Optional] Uncomment to install a different version of Python than the default
14# RUN conda install -y python=3.6 \
15# && pip install --no-cache-dir pipx \
16# && pipx reinstall-all
17
18# [Optional] Uncomment this section to install additional OS packages.
19# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
20# && apt-get -y install --no-install-recommends <your-package-list-here>