|
3 | 3 | # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
|
4 | 4 | #-------------------------------------------------------------------------------------------------------------
|
5 | 5 |
|
6 |
| -FROM python:3 |
| 6 | +# Update this to FROM python:3 if you'd prefer |
| 7 | +# to use standard python instead |
| 8 | +FROM continuumio/anaconda3 |
7 | 9 |
|
8 |
| -# Install git, process tools |
9 |
| -RUN apt-get update && apt-get -y install git procps |
| 10 | +# Configure apt |
| 11 | +ENV DEBIAN_FRONTEND=noninteractive |
| 12 | +RUN apt-get update \ |
| 13 | + && apt-get -y install --no-install-recommends apt-utils 2>&1 |
10 | 14 |
|
11 |
| -# Install Docker CE - ** COMMENT OUT IF YOU WILL ONLY RUN LOCAL OR IN AZURE ** |
12 |
| -RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common \ |
13 |
| - && curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - 2>/dev/null \ |
14 |
| - && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \ |
| 15 | +# Copy default endpoint specific user settings overrides into container to |
| 16 | +# to specify Python path and that Docker should run as a workspace extension |
| 17 | +COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json |
| 18 | + |
| 19 | +# Install git, required tools |
| 20 | +RUN apt-get install -y \ |
| 21 | + git \ |
| 22 | + curl \ |
| 23 | + procps \ |
| 24 | + apt-transport-https \ |
| 25 | + ca-certificates \ |
| 26 | + gnupg-agent \ |
| 27 | + software-properties-common \ |
| 28 | + sudo \ |
| 29 | + lsb-release 2>&1 |
| 30 | + |
| 31 | +# Install Docker CLI |
| 32 | +RUN curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | (OUT=$(apt-key add - 2>&1) || echo $OUT) \ |
| 33 | + && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \ |
15 | 34 | && apt-get update \
|
16 | 35 | && apt-get install -y docker-ce-cli
|
17 | 36 |
|
18 |
| -# Install pylint |
19 |
| -RUN pip install pylint |
| 37 | +# Install pylint and Azure ML SDK |
| 38 | +RUN pip install pylint azureml-sdk[notebooks,automl] 2>&1 |
20 | 39 |
|
21 | 40 | # Clean up
|
22 | 41 | RUN apt-get autoremove -y \
|
23 | 42 | && apt-get clean -y \
|
24 | 43 | && rm -rf /var/lib/apt/lists/*
|
| 44 | +ENV DEBIAN_FRONTEND=dialog |
0 commit comments