Skip to content
Discussion options

You must be logged in to vote

Found a workaround, documented it here #2126 (comment)

Here is the sample dockerfile

ARG JAVA_VERSION=21
FROM mcr.microsoft.com/azure-functions/java:4-java$JAVA_VERSION-appservice

ENV FUNCTION_APP_DIRECTORY=/home/site/wwwroot
# Use a port other than 80 to avoid conflicts with the Azure Functions runtime
# Reference https://devblogs.microsoft.com/dotnet/securing-containers-with-rootless/#switching-to-port-8080
ENV PORT=8080
ENV ASPNETCORE_URLS=http://*:${PORT}

# Set environment variables for the Azure Functions runtime
ENV AzureWebJobsScriptRoot=${FUNCTION_APP_DIRECTORY} \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true

# Set app user permissions for the function app directo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paravatha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant