Skip to content

Instantly share code, notes, and snippets.

@ohayoyogi
Created December 30, 2022 14:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohayoyogi/5c57b30a18a294bdc9739f7a0dbc39fc to your computer and use it in GitHub Desktop.
Save ohayoyogi/5c57b30a18a294bdc9739f7a0dbc39fc to your computer and use it in GitHub Desktop.
Dockerfile for building azure-functions-core-tools for linux-arm64 ( for nodejs )
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS builder
RUN git clone https://github.com/Azure/azure-functions-core-tools
RUN cd azure-functions-core-tools \
&& dotnet build Azure.Functions.Cli.sln \
&& dotnet publish src/Azure.Functions.Cli/Azure.Functions.Cli.csproj --runtime linux-arm64 --output /usr/local/src/azure-functions-core-tools/cli
# You can use any other container image
FROM node:16-bullseye
COPY --from=builder /usr/local/src/azure-functions-core-tools /usr/local/src/azure-functions-core-tools
RUN ln -s /usr/local/src/azure-functions-core-tools/cli/func /usr/local/bin/func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment