generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NOD-541] fix: Updated variable retrieving
- Loading branch information
1 parent
bb8eb64
commit 2c5eca3
Showing
5 changed files
with
36 additions
and
25 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG JAVA_VERSION=11 | ||
# This image additionally contains function core tools – useful when using custom extensions | ||
FROM mcr.microsoft.com/azure-functions/java:3.0-java$JAVA_VERSION-build AS installer-env | ||
|
||
COPY . /src/java-function-app | ||
RUN cd /src/java-function-app && \ | ||
mkdir -p /home/site/wwwroot && \ | ||
mvn clean package -Dmaven.test.skip=true && \ | ||
cd ./target/azure-functions/ && \ | ||
cd $(ls -d */|head -n 1) && \ | ||
cp -a . /home/site/wwwroot | ||
|
||
# This image is ssh enabled | ||
#FROM mcr.microsoft.com/azure-functions/java:3.0-java$JAVA_VERSION-appservice | ||
# This image isn't ssh enabled | ||
FROM mcr.microsoft.com/azure-functions/java:3.0-java$JAVA_VERSION | ||
|
||
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ | ||
AzureFunctionsJobHost__Logging__Console__IsEnabled=true | ||
|
||
EXPOSE 80 | ||
COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"] |