Merge pull request 'Removed user commands from dockerfile' (#6) from migration into master
Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
@@ -11,15 +11,10 @@ RUN dotnet publish "Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=f
|
||||
# Stage 2: Final Image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||
WORKDIR /app
|
||||
RUN addgroup --system --gid 1000 appgroup && \
|
||||
adduser --system --uid 1000 --ingroup appgroup appuser
|
||||
|
||||
EXPOSE 8080
|
||||
EXPOSE 8081
|
||||
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
RUN chown -R appuser:appgroup /app
|
||||
USER appuser
|
||||
|
||||
ENTRYPOINT ["dotnet", "Shop.dll"]
|
||||
Reference in New Issue
Block a user