Skip to content

Commit d223bb9

Browse files
committed
update Dockerfile
1 parent 90be74c commit d223bb9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ARG DOTNET_VERSION=9.0
2+
13
### BUILD JACRED MULTIARCH START ###
24
FROM --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

1618
ENV JACRED_HOME=/home/jacred
1719
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
@@ -24,6 +26,8 @@ WORKDIR $JACRED_HOME
2426

2527
EXPOSE 9117
2628

29+
HEALTHCHECK CMD wget --quiet --timeout=10 --spider http://127.0.0.1:9117 || exit 1
30+
2731
VOLUME [ "$JACRED_HOME" ]
2832

2933
ENTRYPOINT ["dotnet", "JacRed.dll"]

0 commit comments

Comments
 (0)