This commit is contained in:
@@ -12,12 +12,6 @@ RUN dotnet publish "LiteCharmsScheduler/LiteCharmsScheduler.csproj" -c Release -
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN addgroup --system --gid 1000 appgroup && \
|
|
||||||
adduser --system --uid 1000 --ingroup appgroup appuser
|
|
||||||
|
|
||||||
COPY --from=build /app/publish .
|
COPY --from=build /app/publish .
|
||||||
|
|
||||||
RUN chown -R appuser:appgroup /app
|
|
||||||
USER appuser
|
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "LiteCharmsScheduler.dll"]
|
ENTRYPOINT ["dotnet", "LiteCharmsScheduler.dll"]
|
||||||
Reference in New Issue
Block a user