File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ ARG DOTNET_VERSION=9.0
2+
13# ## BUILD JACRED MULTIARCH START ###
24FROM --platform=$BUILDPLATFORM alpine AS builder
35
@@ -11,7 +13,7 @@ RUN rm -f publish.zip
1113# ## BUILD JACRED MULTIARCH END ###
1214
1315# ### BUILD MAIN IMAGE START ###
14- FROM mcr.microsoft.com/dotnet/aspnet:6.0 -alpine
16+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:${DOTNET_VERSION} -alpine
1517
1618ENV JACRED_HOME=/home/jacred
1719ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
@@ -24,6 +26,17 @@ WORKDIR $JACRED_HOME
2426
2527EXPOSE 9117
2628
29+ HEALTHCHECK --interval=30s \
30+ --timeout=15s \
31+ --start-period=45s \
32+ --retries=3 \
33+ --start-interval=5s \
34+ CMD wget --quiet \
35+ --timeout=10 \
36+ --tries=2 \
37+ --spider \
38+ http://localhost:9117 || exit 1
39+
2740VOLUME [ "$JACRED_HOME" ]
2841
2942ENTRYPOINT ["dotnet" , "JacRed.dll" ]
You can’t perform that action at this time.
0 commit comments