This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +8
-28
lines changed
python-3-anaconda/.devcontainer
python-3-miniconda/.devcontainer
python-3-postgres/.devcontainer Expand file tree Collapse file tree 9 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 3
3
# Licensed under the MIT License. See LICENSE in the project root for license information.
4
4
# -----------------------------------------------------------------------------------------
5
5
6
- FROM python:2-slim
6
+ FROM python:2
7
7
8
8
# Copy endpoint specific user settings overrides into container to specify Python path
9
- COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
9
+ COPY .devcontainer/ settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
10
10
11
11
RUN pip install pylint
12
12
13
13
# Install git, process tools
14
14
RUN apt-get update && apt-get -y install git procps
15
15
16
- # Install any missing dependencies for enhanced language service
17
- RUN apt-get install -y libicu57
16
+ # Install Python dependencies from requirements.txt if it exists
17
+ COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
18
+ RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt && rm requirements.txt*; fi
18
19
19
20
# Clean up
20
21
RUN apt-get autoremove -y \
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Python 2" ,
3
+ "context" : " .." ,
3
4
"dockerFile" : " Dockerfile" ,
5
+ "workspaceFolder" : " /workspace" ,
4
6
"extensions" : [
5
7
" ms-python.python" ,
6
- " LittleFoxTeam.vscode-python-test-adapter "
8
+ " VisualStudioExptTeam.vscodeintellicode "
7
9
]
8
10
}
Original file line number Diff line number Diff line change @@ -11,19 +11,13 @@ COPY .devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settin
11
11
# Install git, process tools
12
12
RUN apt-get update && apt-get -y install git procps
13
13
14
- # Install any missing dependencies for enhanced language service
15
- RUN apt-get install -y libicu[0-9][0-9]
16
-
17
14
RUN mkdir /workspace
18
15
WORKDIR /workspace
19
16
20
17
# Install Python dependencies from requirements.txt if it exists
21
18
COPY .devcontainer/environment.yml.temp environment.yml* /workspace/
22
19
RUN if [ -f "environment.yml" ]; then conda env update base -f environment.yml && rm environment.yml*; fi
23
20
24
- # Expose port 5000 as the default web port
25
- EXPOSE 5000
26
-
27
21
# Clean up
28
22
RUN apt-get autoremove -y \
29
23
&& apt-get clean -y \
Original file line number Diff line number Diff line change @@ -11,19 +11,13 @@ COPY .devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settin
11
11
# Install git, process tools
12
12
RUN apt-get update && apt-get -y install git procps
13
13
14
- # Install any missing dependencies for enhanced language service
15
- RUN apt-get install -y libicu[0-9][0-9]
16
-
17
14
RUN mkdir /workspace
18
15
WORKDIR /workspace
19
16
20
17
# Install Python dependencies from requirements.txt if it exists
21
18
COPY .devcontainer/environment.yml.temp environment.yml* /workspace/
22
19
RUN if [ -f "environment.yml" ]; then conda env update base -f environment.yml && rm environment.yml*; fi
23
20
24
- # Expose port 5000 as the default web port
25
- EXPOSE 5000
26
-
27
21
# Clean up
28
22
RUN apt-get autoremove -y \
29
23
&& apt-get clean -y \
Original file line number Diff line number Diff line change 2
2
"name" : " Python 3 - Miniconda" ,
3
3
"context" : " .." ,
4
4
"dockerFile" : " Dockerfile" ,
5
- "appPort" : " 5000:5000" ,
6
5
"workspaceFolder" : " /workspace" ,
7
6
"extensions" : [
8
7
" ms-python.python" ,
Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ WORKDIR /workspace
16
16
# Install git, process tools
17
17
RUN apt-get update && apt-get -y install git procps
18
18
19
- # Install any missing dependencies for enhanced language service
20
- RUN apt-get install -y libicu[0-9][0-9]
21
-
22
19
# Install Python dependencies from requirements.txt if it exists
23
20
COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
24
21
RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt && rm requirements.txt; fi
Original file line number Diff line number Diff line change @@ -11,19 +11,13 @@ COPY .devcontainer/settings.vscode.json /root/.vscode-remote/data/Machine/settin
11
11
# Install git, process tools
12
12
RUN apt-get update && apt-get -y install git procps
13
13
14
- # Install any missing dependencies for enhanced language service
15
- RUN apt-get install -y libicu[0-9][0-9]
16
-
17
14
RUN mkdir /workspace
18
15
WORKDIR /workspace
19
16
20
17
# Install Python dependencies from requirements.txt if it exists
21
18
COPY .devcontainer/requirements.txt.temp requirements.txt* /workspace/
22
19
RUN if [ -f "requirements.txt" ]; then pip install -r requirements.txt && rm requirements.txt*; fi
23
20
24
- # Expose port 5000 as the default web port
25
- EXPOSE 5000
26
-
27
21
# Clean up
28
22
RUN apt-get autoremove -y \
29
23
&& apt-get clean -y \
Original file line number Diff line number Diff line change 2
2
"name" : " Python 3" ,
3
3
"context" : " .." ,
4
4
"dockerFile" : " Dockerfile" ,
5
- "appPort" : " 5000:5000" ,
6
5
"workspaceFolder" : " /workspace" ,
7
6
"extensions" : [
8
7
" ms-python.python" ,
You can’t perform that action at this time.
0 commit comments