Skip to content

Commit

Permalink
Remove user creation and permission settings in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pfh59 committed Nov 29, 2024
1 parent c7d8b9a commit 4290f1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/WHMapper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ EXPOSE 80
EXPOSE 443

# Create a non-root user and group
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
RUN chown appuser:appgroup /app
RUN chmod -R u+rw /app
USER appuser
#RUN addgroup -S appgroup && adduser -S appuser -G appgroup
#RUN chown appuser:appgroup /app
#RUN chmod -R u+rw /app
#USER appuser

# Use the official .NET SDK as a parent image for building the application
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
Expand Down

0 comments on commit 4290f1c

Please sign in to comment.