@atlashub/smartstack-cli 4.66.0 → 4.68.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
|
@@ -35,9 +35,6 @@ RUN dotnet publish {{ProjectName}}.Api/{{ProjectName}}.Api.csproj \
|
|
|
35
35
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
|
36
36
|
WORKDIR /app
|
|
37
37
|
|
|
38
|
-
# Create non-root user
|
|
39
|
-
RUN adduser --disabled-password --gecos "" appuser
|
|
40
|
-
|
|
41
38
|
# Copy published app
|
|
42
39
|
COPY --from=build /app/publish .
|
|
43
40
|
|
|
@@ -49,11 +46,11 @@ EXPOSE 5142 5143 8080
|
|
|
49
46
|
|
|
50
47
|
ENV ASPNETCORE_URLS="http://+:5142;http://+:5143;http://+:8080"
|
|
51
48
|
|
|
52
|
-
# Health check
|
|
49
|
+
# Health check (wget available in .NET base images, curl is not)
|
|
53
50
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
54
|
-
CMD
|
|
51
|
+
CMD wget -qO- http://localhost:8080/health || exit 1
|
|
55
52
|
|
|
56
|
-
# Run as non-root
|
|
57
|
-
USER
|
|
53
|
+
# Run as non-root (built-in 'app' user in .NET 8+ images)
|
|
54
|
+
USER app
|
|
58
55
|
|
|
59
56
|
ENTRYPOINT ["dotnet", "{{ProjectName}}.Api.dll"]
|
|
@@ -11,8 +11,8 @@ WORKDIR /app
|
|
|
11
11
|
ARG VITE_API_URL
|
|
12
12
|
ARG VITE_WS_URL
|
|
13
13
|
|
|
14
|
-
# Copy package
|
|
15
|
-
COPY web/{{ProjectNameLower}}-web/package.json
|
|
14
|
+
# Copy package file for npm cache (context = project root)
|
|
15
|
+
COPY web/{{ProjectNameLower}}-web/package.json ./
|
|
16
16
|
|
|
17
17
|
# Install dependencies (cached layer)
|
|
18
18
|
RUN npm install
|