@atlashub/smartstack-cli 4.65.0 → 4.67.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
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
8
8
|
WORKDIR /src
|
|
9
9
|
|
|
10
|
+
# Copy Directory.Build.props (defines TargetFramework for all projects)
|
|
11
|
+
COPY Directory.Build.props /src/
|
|
12
|
+
|
|
10
13
|
# Copy project files for NuGet restore cache
|
|
11
14
|
COPY src/{{ProjectName}}.Domain/{{ProjectName}}.Domain.csproj {{ProjectName}}.Domain/
|
|
12
15
|
COPY src/{{ProjectName}}.Application/{{ProjectName}}.Application.csproj {{ProjectName}}.Application/
|
|
@@ -32,9 +35,6 @@ RUN dotnet publish {{ProjectName}}.Api/{{ProjectName}}.Api.csproj \
|
|
|
32
35
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
|
33
36
|
WORKDIR /app
|
|
34
37
|
|
|
35
|
-
# Create non-root user
|
|
36
|
-
RUN adduser --disabled-password --gecos "" appuser
|
|
37
|
-
|
|
38
38
|
# Copy published app
|
|
39
39
|
COPY --from=build /app/publish .
|
|
40
40
|
|
|
@@ -46,11 +46,11 @@ EXPOSE 5142 5143 8080
|
|
|
46
46
|
|
|
47
47
|
ENV ASPNETCORE_URLS="http://+:5142;http://+:5143;http://+:8080"
|
|
48
48
|
|
|
49
|
-
# Health check
|
|
49
|
+
# Health check (wget available in .NET base images, curl is not)
|
|
50
50
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
51
|
-
CMD
|
|
51
|
+
CMD wget -qO- http://localhost:8080/health || exit 1
|
|
52
52
|
|
|
53
|
-
# Run as non-root
|
|
54
|
-
USER
|
|
53
|
+
# Run as non-root (built-in 'app' user in .NET 8+ images)
|
|
54
|
+
USER app
|
|
55
55
|
|
|
56
56
|
ENTRYPOINT ["dotnet", "{{ProjectName}}.Api.dll"]
|