This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (36 loc) · 1.82 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
36
37
38
39
40
FROM ubuntu:22.04 as base
WORKDIR /workdir
RUN \
export DEBIAN_FRONTEND=noninteractive && \
# Update system
apt-get -y update && \
apt-get -y upgrade && \
# Install Node.js
apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates && \
/bin/bash -c 'curl -sL https://deb.nodesource.com/setup_16.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/22.04/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
RUN \
export DEBIAN_FRONTEND=noninteractive && \
# download extension bundle ("func start" will do this otherwise)
apt-get install -y unzip && \
wget -q https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.8.1/Microsoft.Azure.Functions.ExtensionBundle.1.8.1_any-any.zip && \
mkdir -p /root/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.8.1 && \
unzip Microsoft.Azure.Functions.ExtensionBundle.1.8.1_any-any.zip -d /root/.azure-functions-core-tools/Functions/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.8.1 && \
rm Microsoft.Azure.Functions.ExtensionBundle.1.8.1_any-any.zip
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
ENV FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT=1
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true
EXPOSE 7071/tcp