Skip to content

Commit d5b701a

Browse files
Remove unnecessary ownership and permission settings in Dockerfile
1 parent ef1c48a commit d5b701a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
2828

2929
EXPOSE 8080
3030
WORKDIR /app
31-
COPY --from=build-env --chown=app:app /app/build/release .
32-
33-
RUN mkdir -p /app/App_Data /app/Plugins /app/wwwroot \
34-
&& chown -R app:app /app/App_Data /app/Plugins /app/wwwroot \
35-
&& chmod -R 775 /app/App_Data /app/Plugins /app/wwwroot
36-
37-
USER app
31+
COPY --from=build-env /app/build/release .
3832

3933
ENTRYPOINT ["dotnet", "Grand.Web.dll"]

0 commit comments

Comments
 (0)