@atlashub/smartstack-cli 4.71.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlashub/smartstack-cli",
3
- "version": "4.71.0",
3
+ "version": "4.73.0",
4
4
  "description": "SmartStack Claude Code automation toolkit - GitFlow, EF Core migrations, prompts and more",
5
5
  "author": {
6
6
  "name": "SmartStack",
@@ -28,15 +28,19 @@ COPY src/{{ProjectName}}.Api/ {{ProjectName}}.Api/
28
28
  # Publish release build
29
29
  RUN dotnet publish {{ProjectName}}.Api/{{ProjectName}}.Api.csproj \
30
30
  -c Release \
31
- -o /app/publish \
31
+ -o /src/publish \
32
32
  --no-restore
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
39
- COPY --from=build /app/publish .
43
+ COPY --from=build /src/publish/ .
40
44
 
41
45
  # Configure ports
42
46
  # 5142 = API HTTP
@@ -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 (wget available in .NET base images, curl is not)
50
- HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
51
- CMD wget -qO- http://localhost:8080/health || exit 1
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