@atlashub/smartstack-cli 4.72.0 → 4.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -33,6 +33,10 @@ RUN dotnet publish {{ProjectName}}.Api/{{ProjectName}}.Api.csproj \
|
|
|
33
33
|
|
|
34
34
|
# --- Stage 2: Runtime ---
|
|
35
35
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
|
36
|
+
|
|
37
|
+
# Install curl for healthcheck (not available in aspnet base image)
|
|
38
|
+
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
|
39
|
+
|
|
36
40
|
WORKDIR /app
|
|
37
41
|
|
|
38
42
|
# Copy published app
|
|
@@ -46,9 +50,9 @@ EXPOSE 5142 5143 8080
|
|
|
46
50
|
|
|
47
51
|
ENV ASPNETCORE_URLS="http://+:5142;http://+:5143;http://+:8080"
|
|
48
52
|
|
|
49
|
-
# Health check (
|
|
50
|
-
HEALTHCHECK --interval=
|
|
51
|
-
CMD
|
|
53
|
+
# Health check (start-period=60s for SQL migrations)
|
|
54
|
+
HEALTHCHECK --interval=10s --timeout=5s --start-period=60s --retries=5 \
|
|
55
|
+
CMD curl -sf http://localhost:8080/health || exit 1
|
|
52
56
|
|
|
53
57
|
# Run as non-root (built-in 'app' user in .NET 8+ images)
|
|
54
58
|
USER app
|