Removed user commands from dockerfile
continuous-integration/drone/pr Build is passing

This commit is contained in:
2026-05-09 17:29:40 +02:00
parent 3b74138e9c
commit 5c0d8430f6
-5
View File
@@ -11,15 +11,10 @@ RUN dotnet publish "Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=f
# Stage 2: Final Image # Stage 2: Final Image
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
EXPOSE 8080 EXPOSE 8080
EXPOSE 8081 EXPOSE 8081
COPY --from=build /app/publish . COPY --from=build /app/publish .
RUN chown -R appuser:appgroup /app
USER appuser
ENTRYPOINT ["dotnet", "Shop.dll"] ENTRYPOINT ["dotnet", "Shop.dll"]