Created
March 27, 2020 15:03
-
-
Save agrajm/3b5eb3901ddf6d2e5f305b6100c985d1 to your computer and use it in GitHub Desktop.
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/azure-functions/java:3.0-java8-build AS installer-env | |
COPY . /src/java-function-app | |
RUN cd /src/java-function-app && \ | |
mkdir -p /home/site/wwwroot && \ | |
mvn clean package && \ | |
cd ./target/azure-functions/ && \ | |
cd $(ls -d */|head -n 1) && \ | |
cp -a . /home/site/wwwroot | |
# This Zulu OpenJDK Dockerfile and corresponding Docker image are | |
# to be used solely with Java applications or Java application components | |
# that are being developed for deployment on Microsoft Azure or Azure Stack, | |
# and are not intended to be used for any other purpose. | |
# This image is ssh enabled | |
FROM mcr.microsoft.com/azure-functions/java:3.0-java8-appservice | |
# If you want to deploy outside of Azure, use this image | |
#FROM mcr.microsoft.com/azure-functions/java:3.0-java8 | |
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ | |
AzureFunctionsJobHost__Logging__Console__IsEnabled=true | |
COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment