Created
December 30, 2022 14:45
-
-
Save ohayoyogi/5c57b30a18a294bdc9739f7a0dbc39fc to your computer and use it in GitHub Desktop.
Dockerfile for building azure-functions-core-tools for linux-arm64 ( for nodejs )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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