This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
containers/azure-static-web-apps/.devcontainer Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- # Find the Dockerfile for mcr.microsoft.com/azure-functions/python:3.0-python3.8-core-tools at this URL
2
- # https://github.com/Azure/azure-functions-docker/blob/dev/host/3.0/buster /amd64/python/python38/python38 -core-tools.Dockerfile
3
- FROM mcr.microsoft.com/azure-functions/python:3.0 -python3.8 -core-tools
1
+ # Find the Dockerfile at this URL
2
+ # https://github.com/Azure/azure-functions-docker/blob/dev/host/4/bullseye /amd64/python/python39/python39 -core-tools.Dockerfile
3
+ FROM mcr.microsoft.com/azure-functions/python:4 -python3.9 -core-tools
4
4
5
5
# Copy library scripts to execute
6
6
COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
7
7
8
- # Install Node.js and Azure Static Web Apps CLI
9
- ARG NODE_VERSION="lts/*"
8
+ # Install Node.js, Azure Static Web Apps CLI and Azure Functions Core Tools
9
+ ARG NODE_VERSION="16"
10
+ ARG CORE_TOOLS_VERSION="4"
10
11
ENV NVM_DIR="/usr/local/share/nvm" \
11
12
NVM_SYMLINK_CURRENT=true \
12
13
PATH="${NVM_DIR}/current/bin:${PATH}"
13
14
RUN bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}" \
14
15
&& su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1" \
15
16
&& su vscode -c "umask 0002 && npm install --cache /tmp/empty-cache -g @azure/static-web-apps-cli" \
17
+ && if [ $CORE_TOOLS_VERSION != "4" ]; then apt-get remove -y azure-functions-core-tools-4 && apt-get update && apt-get install -y "azure-functions-core-tools-${CORE_TOOLS_VERSION}" ; fi \
16
18
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
17
19
18
20
# [Optional] Uncomment this section to install additional OS packages.
Original file line number Diff line number Diff line change 3
3
"build" : {
4
4
"dockerfile" : " Dockerfile" ,
5
5
"args" : {
6
- // Options
7
- "NODE_VERSION" : " lts/*"
6
+ // Please look at runtime version support to make sure you're using compatible versions
7
+ // https://docs.microsoft.com/en-us/azure/azure-functions/supported-languages#languages-by-runtime-version
8
+ "NODE_VERSION" : " 16" ,
9
+ "CORE_TOOLS_VERSION" : " 4"
8
10
}
9
11
},
10
12
"forwardPorts" : [ 7071 , 4280 ],
You can’t perform that action at this time.
0 commit comments