This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (33 loc) · 1.6 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:20.04 as base
WORKDIR /workdir
RUN \
# Update system
apt-get -y update && \
apt-get -y upgrade && \
# Install Node.js 10
apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates && \
/bin/bash -c 'curl -sL https://deb.nodesource.com/setup_10.x | bash -' && \
apt-get install -y nodejs && \
node -v && \
# Azure CLI
curl -sL https://aka.ms/InstallAzureCLIDeb | bash && \
az --version && \
# Azure Functions Core Tools, see https://github.com/Azure/azure-functions-core-tools/blob/dev/README.md#linux
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true && \
apt -y install wget && \
wget -q https://packages.microsoft.com/config/ubuntu/18.10/packages-microsoft-prod.deb && \
dpkg -i packages-microsoft-prod.deb && \
rm packages-microsoft-prod.deb && \
apt-get -y update && \
apt -y install azure-functions-core-tools-3 && \
func && \
# download extension bundle
apt-get install -y unzip && \
wget https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.1.1/Microsoft.Azure.Functions.ExtensionBundle.1.1.1.zip && \
mkdir -p /tmp/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.1.1 && \
unzip Microsoft.Azure.Functions.ExtensionBundle.1.1.1.zip -d /tmp/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.1.1 && \
rm Microsoft.Azure.Functions.ExtensionBundle.1.1.1.zip
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
ENV FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT=1
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
EXPOSE 7071/tcp