microsoft/AI-For-Beginners

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ce1e136ac37ba8eb06ec54f480ccd774a60b8307

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# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
8# && apt-get -y install libgl1
9
10# Copy environment.yml (if found) to a temp location so we update the environment. Also
11# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
12COPY .devcontainer/environment.yml* .devcontainer/requirements.txt /tmp/conda-tmp/
13RUN 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 \
14 && rm -rf /tmp/conda-tmp
15
16# [Optional] Uncomment to install a different version of Python than the default
17# RUN conda install -y python=3.6 \
18# && pip install --no-cache-dir pipx \
19# && pipx reinstall-all
20
21